Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky cypress tests to use data-cy #1361

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Fix flaky cypress tests to use data-cy #1361

merged 1 commit into from
Jul 17, 2024

Conversation

raphaelkabo
Copy link
Contributor

Current situation/background

We used a string label to target a checkbox in our Cypress tests - this has broken because the label changed in the backend.

What does this PR change?

We now set the data-cy HTML attribute to the id of the newsletter/consent for that checkbox. The ID never changes even if the label does, so this will make our tests much more reliable.

Testing

Tested by the tests passing!

@raphaelkabo raphaelkabo merged commit 5334220 into main Jul 17, 2024
13 checks passed
@raphaelkabo raphaelkabo deleted the rk/fix-ete-test branch July 17, 2024 13:14
@prout-bot
Copy link
Collaborator

Seen on PROD (merged by @raphaelkabo 9 minutes and 30 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants