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

Remove skip on optimizely hindi experiment tests #9988

Merged
merged 19 commits into from
Apr 11, 2022

Conversation

MuhammadAHussain
Copy link
Contributor

@MuhammadAHussain MuhammadAHussain commented Mar 25, 2022

Resolves #N/A

Overall change:
Tests were skipped and the mocking of OptimizelyExperiment was broken. Removed the skip and fixed the tests.

Code changes:

  • Mocked OptimizelyExperiment using jest.mock instead of jest.spyOn.
  • Mocked implmentation of intersectionObserver for test case.

  • I have assigned myself to this PR and the corresponding issues
  • I have added the cross-team label to this PR if it requires visibility across World Service teams
  • I have assigned this PR to the Simorgh project
  • (BBC contributors only) This PR follows the repository use guidelines

Testing:

  • Automated (jest and/or cypress) tests added (for new features) or updated (for existing features)
  • If necessary, I have run the local E2E non-smoke tests relevant to my changes (CYPRESS_APP_ENV=local CYPRESS_SMOKE=false yarn test:e2e:interactive)
  • This PR requires manual testing

@MuhammadAHussain MuhammadAHussain marked this pull request as ready for review March 25, 2022 14:37
amoore108
amoore108 previously approved these changes Mar 25, 2022
HarveyPeachey
HarveyPeachey previously approved these changes Mar 28, 2022
@MuhammadAHussain MuhammadAHussain dismissed stale reviews from HarveyPeachey and amoore108 March 28, 2022 12:25

Fixed broken test by mocking implementation.

@MuhammadAHussain MuhammadAHussain merged commit 30414f2 into latest Apr 11, 2022
@MuhammadAHussain MuhammadAHussain deleted the unskip-tests-hindi-experiment branch April 11, 2022 11:13
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