mgr/dashboard: Verify fields on ISCSI page (#29608)

mgr/dashboard: Verify fields on ISCSI page

Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
This commit is contained in:
Lenz Grimmer 2019-08-19 09:03:57 +00:00 committed by GitHub
commit 148312c6af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');
});
});
});