]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/e2e/block/iscsi.e2e-spec.ts
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / e2e / block / iscsi.e2e-spec.ts
1 import { IscsiPageHelper } from './iscsi.po';
2
3 describe('Iscsi Page', () => {
4 let iscsi: IscsiPageHelper;
5
6 beforeAll(() => {
7 iscsi = new IscsiPageHelper();
8 });
9
10 afterEach(async () => {
11 await IscsiPageHelper.checkConsole();
12 });
13
14 describe('breadcrumb test', () => {
15 beforeAll(async () => {
16 await iscsi.navigateTo();
17 });
18
19 it('should open and show breadcrumb', async () => {
20 await iscsi.waitTextToBePresent(iscsi.getBreadcrumb(), 'Overview');
21 });
22 });
23
24 describe('fields check', () => {
25 beforeAll(async () => {
26 await iscsi.navigateTo();
27 });
28
29 it('should check that tables are displayed and legends are correct', async () => {
30 // Check tables are displayed
31 const dataTables = iscsi.getDataTables();
32 await expect(dataTables.get(0).isDisplayed());
33 await expect(dataTables.get(1).isDisplayed());
34
35 // Check that legends are correct
36 const legends = iscsi.getLegends();
37 await expect(legends.get(0).getText()).toMatch('Gateways');
38 await expect(legends.get(1).getText()).toMatch('Images');
39 });
40 });
41 });