1 import { IscsiPageHelper } from './iscsi.po';
3 describe('Iscsi Page', () => {
4 let iscsi: IscsiPageHelper;
7 iscsi = new IscsiPageHelper();
10 afterEach(async () => {
11 await IscsiPageHelper.checkConsole();
14 describe('breadcrumb test', () => {
15 beforeAll(async () => {
16 await iscsi.navigateTo();
19 it('should open and show breadcrumb', async () => {
20 await iscsi.waitTextToBePresent(iscsi.getBreadcrumb(), 'Overview');
24 describe('fields check', () => {
25 beforeAll(async () => {
26 await iscsi.navigateTo();
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());
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');