]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/e2e/pools/pools.e2e-spec.ts
import ceph 14.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / e2e / pools / pools.e2e-spec.ts
CommitLineData
11fdf7f2
TL
1import { Helper } from '../helper.po';
2import { PoolsPage } from './pools.po';
3
4describe('Pools page', () => {
5 let page: PoolsPage;
6
7 beforeAll(() => {
8 page = new PoolsPage();
9 });
10
11 afterEach(() => {
12 Helper.checkConsole();
13 });
14
15 it('should open and show breadcrumb', () => {
16 page.navigateTo();
eafe8130 17 Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Pools');
11fdf7f2
TL
18 });
19
20 it('should show two tabs', () => {
21 page.navigateTo();
22 expect(Helper.getTabsCount()).toEqual(2);
23 });
24
25 it('should show pools list tab at first', () => {
26 page.navigateTo();
27 expect(Helper.getTabText(0)).toEqual('Pools List');
28 });
29
30 it('should show overall performance as a second tab', () => {
31 page.navigateTo();
32 expect(Helper.getTabText(1)).toEqual('Overall Performance');
33 });
34});