Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

add data-e2e attributes for e2e tests #4436

Merged
merged 2 commits into from
Mar 16, 2021
Merged

add data-e2e attributes for e2e tests #4436

merged 2 commits into from
Mar 16, 2021

Conversation

jroebu14
Copy link
Contributor

@jroebu14 jroebu14 commented Mar 16, 2021

Resolves #NUMBER

Overall change:
Adds data-e2e attributes to elements so we can assert these elements are in/out of the DOM in our Cypress e2e tests.

We currently select elements in the DOM using class name queries however class names have changed with the Emotion 11 upgrade - class names no longer take the name of the styled component. Class name selectors in tests is generally not recommended anyway.

Code changes:

  • Adds data-e2e attrs to elements

  • I have assigned myself to this PR and the corresponding issues
  • Automated jest tests added (for new features) or updated (for existing features)
  • This PR requires manual testing

@github-actions
Copy link

Checkout your storybook preview here http://psammead-preview.tools.bbc.co.uk/4436

@jroebu14 jroebu14 self-assigned this Mar 16, 2021
@jroebu14 jroebu14 added the cross-team For visibility for both World Service teams (Engage & Media) label Mar 16, 2021
@jroebu14 jroebu14 marked this pull request as ready for review March 16, 2021 11:20
@jroebu14 jroebu14 merged commit bac419a into latest Mar 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cross-team For visibility for both World Service teams (Engage & Media)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants