From 03f5e0eb7ed1456f784e6680359b3f96059c174b Mon Sep 17 00:00:00 2001 From: Gard Rimestad Date: Tue, 9 Jan 2024 16:54:22 +0100 Subject: [PATCH] fix: import test wait should be between import and page load (#5811) the wait was after fetching the feature page, should be before probably. --- frontend/cypress/integration/import/import.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/cypress/integration/import/import.spec.ts b/frontend/cypress/integration/import/import.spec.ts index 03eb40ff9d..48f7e961a7 100644 --- a/frontend/cypress/integration/import/import.spec.ts +++ b/frontend/cypress/integration/import/import.spec.ts @@ -113,10 +113,10 @@ describe('imports', () => { cy.get("[data-testid='IMPORT_CONFIGURATION_BUTTON']").click(); // cy.contains('Import completed'); - cy.visit(`/projects/default/features/${randomFeatureName}`); - cy.wait(500); + cy.visit(`/projects/default/features/${randomFeatureName}`); + cy.get( "[data-testid='feature-toggle-status'] input[type='checkbox']:checked", )