Skip to content

[WIP] test(e2e): added jest env and puppeteer for e2e #986

New issue

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

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

Already on GitHub? # to your account

Closed
wants to merge 12 commits into from

Conversation

anikethsaha
Copy link
Member

@anikethsaha anikethsaha commented Dec 23, 2019

E2E testing using puppeteer and jest

  • added puppeteer
  • removed mocha
  • added jest
  • created custom jest env for supporting the live-server instance in tests suites
  • npm script support
  • eslint fixes ( Eslint fixes for the project #987 )
  • test cases using puppeteer
    • setup image snapshot using jest-image-snapshot
    • sideBar testing
    • search field testing
    • cover page
  • fix jest config to support running other tests in test folder
  • travis additions
  • coverage (nyc or jest and codecoverage for PRs)
  • Github action if required

Currently, This PR contains a fixture which is a copy of our docs. So these tests will be run against the updated docs with updated themes and plugins.
Refactored the e2e/fixtures/docs/index.html in order to use packages from local project

This PR doesnt contain SSR tests

More tests and fixtures can be added in later PR and in future.

Update/Note

Currently I have assigned failureThreshold to 10% but in future I think we should consider <1%

Test timing is currently 30sec , may consider to increase it if required max 60sec

@anikethsaha anikethsaha self-assigned this Dec 23, 2019
@anikethsaha anikethsaha added this to the 4.x milestone Dec 23, 2019
@timaschew timaschew mentioned this pull request Dec 24, 2019
8 tasks
@anikethsaha anikethsaha mentioned this pull request Dec 28, 2019
5 tasks
@anikethsaha anikethsaha mentioned this pull request Jan 8, 2020
7 tasks
@anikethsaha anikethsaha closed this Jan 8, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants