Fixes: https://tracker.ceph.com/issues/38245
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
(cherry picked from commit
f35bef2506192451392c9e48715e669e1247fbec)
Conflicts:
src/pybind/mgr/dashboard/frontend/e2e/block/iscsi.e2e-spec.ts
src/pybind/mgr/dashboard/frontend/e2e/cluster/configuration.e2e-spec.ts
src/pybind/mgr/dashboard/frontend/e2e/cluster/crush-map.e2e-spec.ts
src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.e2e-spec.ts
src/pybind/mgr/dashboard/frontend/e2e/cluster/logs.e2e-spec.ts
src/pybind/mgr/dashboard/frontend/e2e/cluster/monitors.e2e-spec.ts
src/pybind/mgr/dashboard/frontend/e2e/cluster/osds.e2e-spec.ts
src/pybind/mgr/dashboard/frontend/e2e/pools/pools.e2e-spec.ts
`getBreadcrumbText` renamed to `getBreadcrumb` to be used with
`Helper.waitTextToBePresent`
Helper.checkConsole();
});
- it('should open and show breadcrumb', () => {
- page.navigateTo();
- Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Overview');
+ describe('breadcrumb test', () => {
+ beforeAll(() => {
+ page.navigateTo();
+ });
+
+ it('should open and show breadcrumb', () => {
+ Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Overview');
+ });
});
});
Helper.checkConsole();
});
- it('should open and show breadcrumb', () => {
- page.navigateTo();
- Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Configuration');
+ describe('breadcrumb test', () => {
+ beforeAll(() => {
+ page.navigateTo();
+ });
+
+ it('should open and show breadcrumb', () => {
+ Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Configuration');
+ });
});
});
Helper.checkConsole();
});
- it('should open and show breadcrumb', () => {
- page.navigateTo();
- Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'CRUSH map');
+ describe('breadcrumb test', () => {
+ beforeAll(() => {
+ page.navigateTo();
+ });
+
+ it('should open and show breadcrumb', () => {
+ Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'CRUSH map');
+ });
});
});
Helper.checkConsole();
});
- it('should open and show breadcrumb', () => {
- page.navigateTo();
- Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Hosts');
- });
+ describe('breadcrumb and tab tests', () => {
+ beforeAll(() => {
+ page.navigateTo();
+ });
- it('should show two tabs', () => {
- page.navigateTo();
- expect(Helper.getTabsCount()).toEqual(2);
- });
+ it('should open and show breadcrumb', () => {
+ Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Hosts');
+ });
- it('should show hosts list tab at first', () => {
- page.navigateTo();
- expect(Helper.getTabText(0)).toEqual('Hosts List');
- });
+ it('should show two tabs', () => {
+ expect(Helper.getTabsCount()).toEqual(2);
+ });
+
+ it('should show hosts list tab at first', () => {
+ expect(Helper.getTabText(0)).toEqual('Hosts List');
+ });
- it('should show overall performance as a second tab', () => {
- page.navigateTo();
- expect(Helper.getTabText(1)).toEqual('Overall Performance');
+ it('should show overall performance as a second tab', () => {
+ expect(Helper.getTabText(1)).toEqual('Overall Performance');
+ });
});
});
Helper.checkConsole();
});
- it('should open and show breadcrumb', () => {
- page.navigateTo();
- Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Logs');
- });
+ describe('breadcrumb and tab tests', () => {
+ beforeAll(() => {
+ page.navigateTo();
+ });
- it('should show two tabs', () => {
- page.navigateTo();
- expect(Helper.getTabsCount()).toEqual(2);
- });
+ it('should open and show breadcrumb', () => {
+ Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Logs');
+ });
- it('should show cluster logs tab at first', () => {
- page.navigateTo();
- expect(Helper.getTabText(0)).toEqual('Cluster Logs');
- });
+ it('should show two tabs', () => {
+ expect(Helper.getTabsCount()).toEqual(2);
+ });
+
+ it('should show cluster logs tab at first', () => {
+ expect(Helper.getTabText(0)).toEqual('Cluster Logs');
+ });
- it('should show audit logs as a second tab', () => {
- page.navigateTo();
- expect(Helper.getTabText(1)).toEqual('Audit Logs');
+ it('should show audit logs as a second tab', () => {
+ expect(Helper.getTabText(1)).toEqual('Audit Logs');
+ });
});
});
Helper.checkConsole();
});
- it('should open and show breadcrumb', () => {
- page.navigateTo();
- Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Monitors');
+ describe('breadcrumb test', () => {
+ beforeAll(() => {
+ page.navigateTo();
+ });
+
+ it('should open and show breadcrumb', () => {
+ Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Monitors');
+ });
});
});
Helper.checkConsole();
});
- it('should open and show breadcrumb', () => {
- page.navigateTo();
- Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'OSDs');
- });
+ describe('breadcrumb and tab tests', () => {
+ beforeAll(() => {
+ page.navigateTo();
+ });
- it('should show two tabs', () => {
- page.navigateTo();
- expect(Helper.getTabsCount()).toEqual(2);
- });
+ it('should open and show breadcrumb', () => {
+ Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'OSDs');
+ });
- it('should show OSDs list tab at first', () => {
- page.navigateTo();
- expect(Helper.getTabText(0)).toEqual('OSDs List');
- });
+ it('should show two tabs', () => {
+ expect(Helper.getTabsCount()).toEqual(2);
+ });
+
+ it('should show OSDs list tab at first', () => {
+ expect(Helper.getTabText(0)).toEqual('OSDs List');
+ });
- it('should show overall performance as a second tab', () => {
- page.navigateTo();
- expect(Helper.getTabText(1)).toEqual('Overall Performance');
+ it('should show overall performance as a second tab', () => {
+ expect(Helper.getTabText(1)).toEqual('Overall Performance');
+ });
});
});
Helper.checkConsole();
});
- it('should open and show breadcrumb', () => {
- page.navigateTo();
- Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Pools');
- });
+ describe('breadcrumb and tab tests', () => {
+ beforeAll(() => {
+ page.navigateTo();
+ });
- it('should show two tabs', () => {
- page.navigateTo();
- expect(Helper.getTabsCount()).toEqual(2);
- });
+ it('should open and show breadcrumb', () => {
+ Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Pools');
+ });
- it('should show pools list tab at first', () => {
- page.navigateTo();
- expect(Helper.getTabText(0)).toEqual('Pools List');
- });
+ it('should show two tabs', () => {
+ expect(Helper.getTabsCount()).toEqual(2);
+ });
+
+ it('should show pools list tab at first', () => {
+ expect(Helper.getTabText(0)).toEqual('Pools List');
+ });
- it('should show overall performance as a second tab', () => {
- page.navigateTo();
- expect(Helper.getTabText(1)).toEqual('Overall Performance');
+ it('should show overall performance as a second tab', () => {
+ expect(Helper.getTabText(1)).toEqual('Overall Performance');
+ });
});
});