]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/e2e/block/images.e2e-spec.ts
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / e2e / block / images.e2e-spec.ts
1 import { Helper } from '../helper.po';
2 import { ImagesPage } from './images.po';
3
4 describe('Images page', () => {
5 let page: ImagesPage;
6
7 beforeAll(() => {
8 page = new ImagesPage();
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', () => {
21 expect(Helper.getBreadcrumbText()).toEqual('Images');
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('Images');
30 expect(Helper.getTabText(1)).toEqual('Trash');
31 expect(Helper.getTabText(2)).toEqual('Overall Performance');
32 });
33 });
34 });