]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/block/iscsi.e2e-spec.ts
import 15.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / block / iscsi.e2e-spec.ts
1 import { IscsiPageHelper } from './iscsi.po';
2
3 describe('Iscsi Page', () => {
4 const iscsi = new IscsiPageHelper();
5
6 beforeEach(() => {
7 cy.login();
8 iscsi.navigateTo();
9 });
10
11 it('should open and show breadcrumb', () => {
12 iscsi.expectBreadcrumbText('Overview');
13 });
14
15 it('should check that tables are displayed and legends are correct', () => {
16 // Check tables are displayed
17 iscsi.getDataTables().its(0).should('be.visible');
18 iscsi.getDataTables().its(1).should('visible');
19
20 // Check that legends are correct
21 iscsi.getLegends().its(0).should('contain.text', 'Gateways');
22 iscsi.getLegends().its(1).should('contain.text', 'Images');
23 });
24 });