From f12fc28ac1af2884c2de07f863bf21791856f6da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Saracca?= Date: Wed, 4 Dec 2024 22:37:38 -0300 Subject: [PATCH] test: add a wait before checking --- .../ValidTokenNotLinkedAccountForm.spec.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/component/sections/sign-up/valid-token-not-linked-account-form/ValidTokenNotLinkedAccountForm.spec.tsx b/tests/component/sections/sign-up/valid-token-not-linked-account-form/ValidTokenNotLinkedAccountForm.spec.tsx index 94a2ac35d..c6a240704 100644 --- a/tests/component/sections/sign-up/valid-token-not-linked-account-form/ValidTokenNotLinkedAccountForm.spec.tsx +++ b/tests/component/sections/sign-up/valid-token-not-linked-account-form/ValidTokenNotLinkedAccountForm.spec.tsx @@ -115,6 +115,8 @@ describe('ValidTokenNotLinkedAccountForm', () => { ) + cy.wait(300) + cy.findByTestId('termsAcceptedCheckbox').check({ force: true }) cy.wait(300) @@ -159,6 +161,8 @@ describe('ValidTokenNotLinkedAccountForm', () => { // Assert that submit button is disabled if terms are not accepted cy.findByRole('button', { name: 'Create Account' }).should('be.disabled') + cy.wait(300) + cy.findByTestId('termsAcceptedCheckbox').check({ force: true }) cy.wait(300)