From de7b95a691a9718504b164e4a761a8265f60a26e Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Thu, 12 Dec 2024 13:43:01 +0100 Subject: [PATCH] fix: e2e cypress create flag delay (#8968) --- .github/workflows/validate-migrations.yaml | 1 + frontend/cypress/support/UI.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/validate-migrations.yaml b/.github/workflows/validate-migrations.yaml index b64c7df1a7..3be8b4f3f8 100644 --- a/.github/workflows/validate-migrations.yaml +++ b/.github/workflows/validate-migrations.yaml @@ -6,6 +6,7 @@ on: - main paths: - 'src/migrations/**' + - 'frontend/cypress/**' - '.github/workflows/validate-migrations.yaml' - 'test-migrations/**' - 'frontend/cypress' diff --git a/frontend/cypress/support/UI.ts b/frontend/cypress/support/UI.ts index c8489287d7..160166083f 100644 --- a/frontend/cypress/support/UI.ts +++ b/frontend/cypress/support/UI.ts @@ -58,6 +58,8 @@ export const createFeature_UI = ( const uiOpts = forceInteractions ? { force: true } : undefined; cy.visit(`/projects/${projectName}`); + cy.wait(5_000); + cy.get('[data-testid=NAVIGATE_TO_CREATE_FEATURE').click(uiOpts); cy.intercept('POST', `/api/admin/projects/${projectName}/features`).as(