From: Rafael Quintero Date: Mon, 12 Aug 2019 13:44:05 +0000 (-0400) Subject: mgr/dashboard: Verify fields on ISCSI page X-Git-Tag: v15.1.0~1848^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=19a0593087f37f476892bb53fafb07ccc07e4d4b;p=ceph.git mgr/dashboard: Verify fields on ISCSI page Fixes: https://tracker.ceph.com/issues/41207 Signed-off-by: Adam King Signed-off-by: Rafael Quintero --- diff --git a/src/pybind/mgr/dashboard/frontend/e2e/block/iscsi.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/e2e/block/iscsi.e2e-spec.ts index 523ab2e9f56d..a07200c7a132 100644 --- a/src/pybind/mgr/dashboard/frontend/e2e/block/iscsi.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/e2e/block/iscsi.e2e-spec.ts @@ -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'); + }); + }); });