]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/e2e/block/mirroring.e2e-spec.ts
import ceph 14.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / e2e / block / mirroring.e2e-spec.ts
CommitLineData
11fdf7f2
TL
1import { Helper } from '../helper.po';
2import { MirroringPage } from './mirroring.po';
3
4describe('Mirroring page', () => {
5 let page: MirroringPage;
6
7 beforeAll(() => {
8 page = new MirroringPage();
9 });
10
11 afterEach(() => {
12 Helper.checkConsole();
13 });
14
15 describe('breadcrumb and tab tests', () => {
16 beforeAll(() => {
17 page.navigateTo();
18 });
19
20 it('should open and show breadcrumb', () => {
eafe8130 21 Helper.waitTextToBePresent(Helper.getBreadcrumb(), 'Mirroring');
11fdf7f2
TL
22 });
23
24 it('should show three tabs', () => {
25 expect(Helper.getTabsCount()).toEqual(3);
26 });
27
28 it('should show text for all tabs', () => {
29 expect(Helper.getTabText(0)).toEqual('Issues');
30 expect(Helper.getTabText(1)).toEqual('Syncing');
31 expect(Helper.getTabText(2)).toEqual('Ready');
32 });
33 });
34});