From b66a883392a842e9259883d8bd69699b39f2aa24 Mon Sep 17 00:00:00 2001 From: Ugo Palatucci Date: Thu, 28 Mar 2024 08:31:48 +0100 Subject: [PATCH] Remove pf-5 references on tests --- cypress/e2e/StatusList.spec.cy.ts | 2 +- cypress/support/commands.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/StatusList.spec.cy.ts b/cypress/e2e/StatusList.spec.cy.ts index 516ef14d..c7cfb321 100644 --- a/cypress/e2e/StatusList.spec.cy.ts +++ b/cypress/e2e/StatusList.spec.cy.ts @@ -21,7 +21,7 @@ describe('NodeNetworkState list', () => { cy.wait(['@getStatuses'], { timeout: 40000 }); - cy.get('.pf-v5-c-empty-state').should('contain', 'No NodeNetworkStates found'); + cy.get('h5').should('contain', 'No NodeNetworkStates found'); }); it('with one VID instace ', () => { diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 5bbfca56..ac3c7b81 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -43,7 +43,7 @@ Cypress.Commands.add('login', (provider, username, password) => { const idp = provider || KUBEADMIN_IDP; - cy.get('.pf-v5-c-login__main-body').should('be.visible'); + cy.get('main form').should('be.visible'); cy.get('body').then(($body) => { if ($body.text().includes(idp)) {