mgr/dashboard: Verify fields on ISCSI page

Fixes: https://tracker.ceph.com/issues/41207

Signed-off-by: Adam King <adking@redhat.com>
Signed-off-by: Rafael Quintero <rquinter@redhat.com>
This commit is contained in:
Rafael Quintero 2019-08-12 09:44:05 -04:00
parent 13f1595335
commit 19a0593087

View File

@ -20,4 +20,40 @@ describe('Iscsi Page', () => {
expect(iscsi.getBreadcrumbText()).toEqual('Overview');
});
});
describe('fields check', () => {
beforeAll(() => {
iscsi.navigateTo();
});
it('should check that tables are displayed and legends are correct', () => {
// Check tables are displayed
expect(
iscsi
.getTable()
.get(0)
.isDisplayed()
);
expect(
iscsi
.getTable()
.get(1)
.isDisplayed()
);
// Check that legends are correct
expect(
iscsi
.getLegends()
.get(0)
.getText()
).toMatch('Gateways');
expect(
iscsi
.getLegends()
.get(1)
.getText()
).toMatch('Images');
});
});
});