Fixes: https://tracker.ceph.com/issues/41207
Signed-off-by: Adam King <adking@redhat.com>
Signed-off-by: Rafael Quintero <rquinter@redhat.com>
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');
+ });
+ });
});