mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
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:
commit
148312c6af
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user