diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.e2e-spec.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.e2e-spec.ts | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.e2e-spec.ts new file mode 100644 index 00000000..f0b8a0e2 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.e2e-spec.ts @@ -0,0 +1,36 @@ +import { Helper } from '../helper.po'; +import { HostsPage } from './hosts.po'; + +describe('Hosts page', () => { + let page: HostsPage; + + beforeAll(() => { + page = new HostsPage(); + }); + + afterEach(() => { + Helper.checkConsole(); + }); + + describe('breadcrumb and tab tests', () => { + beforeAll(() => { + page.navigateTo(); + }); + + it('should open and show breadcrumb', () => { + Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Hosts'); + }); + + 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', () => { + expect(Helper.getTabText(1)).toEqual('Overall Performance'); + }); + }); +}); |