-
Notifications
You must be signed in to change notification settings - Fork 105
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
Migrate end-to-end tests to Playwright #7215
Merged
bors
merged 1 commit into
Third-Culture-Software:master
from
jmcameron:migrate-end-to-end-tests-to-playwright
Aug 24, 2023
Merged
Migrate end-to-end tests to Playwright #7215
bors
merged 1 commit into
Third-Culture-Software:master
from
jmcameron:migrate-end-to-end-tests-to-playwright
Aug 24, 2023
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
jmcameron
force-pushed
the
migrate-end-to-end-tests-to-playwright
branch
from
August 23, 2023 11:43
b8562a6
to
93380cf
Compare
bors try |
tryBuild failed: |
bors try |
tryBuild failed: |
bors try |
bors try- |
bors try |
tryBuild failed: |
jmcameron
force-pushed
the
migrate-end-to-end-tests-to-playwright
branch
from
August 24, 2023 14:33
947a39b
to
a8d2808
Compare
jmcameron
force-pushed
the
migrate-end-to-end-tests-to-playwright
branch
from
August 24, 2023 14:36
a8d2808
to
25b20df
Compare
bors r+ |
bors bot
added a commit
that referenced
this pull request
Aug 24, 2023
7215: Migrate end-to-end tests to Playwright r=jmcameron a=jmcameron This PR enables end-to-end tests that have been migrated from Protractor to Playwright. Note that only 23% of the end-to-end have been converted, but it seems appropriate to start using the tests that have been migrated now to avoid any regressions that they might catch. Note that the old Protractor tests have not been deleted yet, since the obsolete files may still be useful in the migration process. Also the original command `yarn test:ends` are unchanged so it remains broken. Use the new command `yarn test:e2e` instead. Note that a few of these tests still sporadically fail; I'm trying to resolve those problems. See [Issue 6976](#6976) for details about the migration. Note: This PR replaces [PR 7024](#7024). It is essentially a rebase to consolidate all the commit messages (via git diff vs master and patch, not via `git rebase`). ### Testing - Set your .env file for bhima_test - Run `yarn` to update dependencies (you may want to run `yarn upgrade` too) - Install playwright: - `npm install playwright` - Verify the two versions match: - `grep '`@playwright/test@'` yarn.lock` - `npx playwright --version` - Run the tests: `yarn test:e2e` Co-authored-by: Jonathan Cameron <jmcameron@gmail.com>
Build failed: |
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
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.
This PR enables end-to-end tests that have been migrated from Protractor to Playwright. Note that only 23% of the end-to-end have been converted, but it seems appropriate to start using the tests that have been migrated now to avoid any regressions that they might catch.
Note that the old Protractor tests have not been deleted yet, since the obsolete files may still be useful in the migration process. Also the original command
yarn test:ends
are unchanged so it remains broken. Use the new commandyarn test:e2e
instead.Note that a few of these tests still sporadically fail; I'm trying to resolve those problems.
See Issue 6976 for details about the migration.
Closes #6976.
Note: This PR replaces PR 7024. It is essentially a rebase to consolidate all the commit messages (via git diff vs master and patch, not via
git rebase
).Testing
yarn
to update dependencies (you may want to runyarn upgrade
too)npm install playwright
grep '@playwright/test@' yarn.lock
npx playwright --version
npx playwright install
yarn test:e2e-account
yarn test:e2e-stock
yarn test:e2e