-
-
Notifications
You must be signed in to change notification settings - Fork 78
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(ci): Migrate acceptance tests from Webdriver to Cypress #301
Merged
adrienjoly
merged 32 commits into
master
from
fix/199-migrate-acceptance-tests-from-webdriver-to-cypress
Mar 22, 2020
Merged
fix(ci): Migrate acceptance tests from Webdriver to Cypress #301
adrienjoly
merged 32 commits into
master
from
fix/199-migrate-acceptance-tests-from-webdriver-to-cypress
Mar 22, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… exiting, as we should
…et test suite login after the call to dbReset
…ce _db prop (singleton db connection)
…res when needed => speed up ci
adrienjoly
added a commit
that referenced
this pull request
Mar 22, 2020
Extracted from PR #301. Contributes to #199. ## What does this PR do / solve? Cypress' best practices recommend to start each test with a clean server state. ## Overview of changes Instead of seeding the database before running Cypress, we let it do that before running every test. As a result this PR: - introduces a new `POST /testing/reset` API endpoint that clears the db and re-populates it with test data - removes calls to `npm run test-reset` - extracts the db initialization logic from `app.js` to `mongodb.js` - also takes that opportunity to extract `cacheCollections()` and `runShellScript()` out of `mongodb.js`'s `init()` function ## How to test this PR? CI should pass. Locally, you should be able to run all tests more than once in a row, using `$ npm run docker:test:cypress:dev`
adrienjoly
pushed a commit
that referenced
this pull request
Mar 22, 2020
adrienjoly
changed the title
fix(ci): migrate acceptance tests from webdriver to cypress
fix(ci): Migrate acceptance tests from Webdriver to Cypress
Mar 22, 2020
…ess' of https://github.com/openwhyd/openwhyd into fix/199-migrate-acceptance-tests-from-webdriver-to-cypress * 'fix/199-migrate-acceptance-tests-from-webdriver-to-cypress' of https://github.com/openwhyd/openwhyd: chore(release): 1.30.4 [skip ci]
Note: although the tests are passing fine on CI, I'm getting the following error when running
|
…lement is not visible (see #301 (comment))
adrienjoly
deleted the
fix/199-migrate-acceptance-tests-from-webdriver-to-cypress
branch
March 22, 2020 19:14
adrienjoly
added a commit
that referenced
this pull request
Mar 23, 2020
* master: (64 commits) chore(release): 1.30.6 [skip ci] fix(ui): Resizing the page should not scroll to the top (#303) chore(release): 1.30.5 [skip ci] fix(tests): Migrate acceptance tests from Webdriver to Cypress (#301) chore(release): 1.30.4 [skip ci] fix(tests): create dummy posts from cypress tests instead of from initdb_testing (#304) chore(release): 1.30.3 [skip ci] fix(tests): Reset database between each Cypress tests (#302) chore(release): 1.30.2 [skip ci] fix(ui): Display correct track error message when using electron app (#294) chore(release): 1.30.1 [skip ci] fix(error): 404 redirect when clicking load more on account stream (#296) test(#295): add non-regression test for pagination (#299) chore(release): 1.30.0 [skip ci] feat(ci): separate ci tasks for each type of tests (#298) chore(release): 1.29.0 [skip ci] feat(ci): enable TypeScript in Cypress tests (#297) remove browser cache hack preventing css from displaying correct logo (#293) chore(release): 1.28.2 [skip ci] fix(ui): never-ending loading animation on empty search (#260) ... # Conflicts: # .github/workflows/nodejs.yml
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contributes to #199.