diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 62089f26..b6ca274a 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -49,8 +49,10 @@ Cypress.Commands.add('login', (provider?: string, username?: string, password?: if (win.SERVER_FLAGS?.authDisabled) { cy.log('skipping login, console is running with auth disabled'); - cy.contains('.pf-c-nav__link', 'Networking').click(); - cy.contains('.pf-c-nav__link', 'NodeNetworkConfigurationPolicy').should('be.visible'); + cy.contains('li[data-test="nav"]', 'Networking').click(); + cy.contains('*[data-test-id="policy-nav-list"]', 'NodeNetworkConfigurationPolicy').should( + 'be.visible', + ); return; } @@ -71,8 +73,10 @@ Cypress.Commands.add('login', (provider?: string, username?: string, password?: cy.get(submitButton).click(); // wait for virtualization page - cy.contains('.pf-c-nav__link', 'Networking').click(); - cy.contains('.pf-c-nav__link', 'NodeNetworkConfigurationPolicy').should('be.visible'); + cy.contains('li[data-test="nav"]', 'Networking').click(); + cy.contains('*[data-test-id="policy-nav-list"]', 'NodeNetworkConfigurationPolicy').should( + 'be.visible', + ); }); }); diff --git a/webpack.config.ts b/webpack.config.ts index 3fdf95c6..ea213801 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -92,6 +92,7 @@ const config: WebpackConfiguration & { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS', 'Access-Control-Allow-Headers': 'X-Requested-With, Content-Type, Authorization', + 'Cache-Control': 'no-store', }, devMiddleware: { writeToDisk: true,