]>
Commit | Line | Data |
---|---|---|
9f95a23c | 1 | import { IscsiPageHelper } from './iscsi.po'; |
11fdf7f2 TL |
2 | |
3 | describe('Iscsi Page', () => { | |
9f95a23c | 4 | let iscsi: IscsiPageHelper; |
11fdf7f2 TL |
5 | |
6 | beforeAll(() => { | |
9f95a23c | 7 | iscsi = new IscsiPageHelper(); |
11fdf7f2 TL |
8 | }); |
9 | ||
9f95a23c TL |
10 | afterEach(async () => { |
11 | await IscsiPageHelper.checkConsole(); | |
11fdf7f2 TL |
12 | }); |
13 | ||
9f95a23c TL |
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 | }); | |
11fdf7f2 TL |
40 | }); |
41 | }); |