1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: import test wait should be between import and page load (#5811)

the wait was after fetching the feature page, should be before probably.
This commit is contained in:
Gard Rimestad 2024-01-09 16:54:22 +01:00 committed by GitHub
parent 24b202ef0b
commit 03f5e0eb7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
)