From 19a0593087f37f476892bb53fafb07ccc07e4d4b Mon Sep 17 00:00:00 2001 From: Rafael Quintero Date: Mon, 12 Aug 2019 09:44:05 -0400 Subject: [PATCH] mgr/dashboard: Verify fields on ISCSI page Fixes: https://tracker.ceph.com/issues/41207 Signed-off-by: Adam King Signed-off-by: Rafael Quintero --- .../frontend/e2e/block/iscsi.e2e-spec.ts | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) 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 523ab2e9f56..a07200c7a13 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'); + }); + }); }); -- 2.39.5