-
Notifications
You must be signed in to change notification settings - Fork 257
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
(test) O3-2106: Set up patient chart repo for e2e testing #1164
Conversation
@jayasanka-sack @anjula-sack @Piumal1999 Could you please review this |
username: process.env.E2E_USER_ADMIN_USERNAME, | ||
password: process.env.E2E_USER_ADMIN_PASSWORD, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For patient chart, we should also emphasize on role testings as well, i.e. Nurse/ Doctor, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For patient chart, we should also emphasize on role testings as well, i.e. Nurse/ Doctor, etc.
How can I find those roles? can you explain it, please? For now this is an initial PR. So for now I was trying to use only the admin
.github/workflows/e2e.yml
Outdated
path: playwright-report/ | ||
retention-days: 30 | ||
|
||
testOnPush: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jayasanka-sack Why are we using camel case here?
testOnPush: | |
test-on-push: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No specific reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer test-on-push: to maintain the same syntax throughout the yml file @jayasanka-sack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @RandilaP, thanks for the PR!
Please take a look at the comments. Also, could you kindly write a test case for this PR?
@jayasanka-sack Sure. Thanks |
That makes sense
On Sat, 27 May 2023 at 17:07, Anjula Shanaka ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In .github/workflows/e2e.yml
<#1164 (comment)>
:
> +
+ - name: Run dev server
+ run: yarn start --sources 'packages/esm-*-app/' --port 8180 & # Refer to O3-1994
+
+ - name: Run E2E tests
+ run: yarn playwright test
+
+ - name: Upload Report
+ uses: ***@***.***
+ if: always()
+ with:
+ name: playwright-report
+ path: playwright-report/
+ retention-days: 30
+
+ testOnPush:
I prefer test-on-push: to maintain the same syntax throughout the yml file
@jayasanka-sack <https://github.com/jayasanka-sack>
—
Reply to this email directly, view it on GitHub
<#1164 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH4EOS6K7FS2QZEWTQTNFZTXIHROHANCNFSM6AAAAAAYJ452BU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Jayasanka Weerasinghe
|
@jayasanka-sack @anjula-sack @Piumal1999 Could you please review this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RandilaP can you resolve the conflicts?
package.json
Outdated
"verify": "turbo run lint && turbo run typescript && yarn run test", | ||
"prettier": "prettier --config prettier.config.js --write \"packages/**/*.{ts,tsx}\"", | ||
"postinstall": "husky install", | ||
"verify": "turbo run lint && turbo run typescript", | ||
"prettier": "prettier --config prettier.config.js --write \"packages/**/*.{ts,tsx,css,scss}\" \"e2e/**/*.ts\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need these changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RandilaP the conflicts are still there
@jayasanka-sack @anjula-sack @Piumal1999 Could you please review this |
package.json
Outdated
"verify": "turbo run lint && turbo run typescript", | ||
"prettier": "prettier --config prettier.config.js --write \"packages/**/*.{ts,tsx,css,scss}\" \"e2e/**/*.ts\"", | ||
"test": "cross-env TZ=UTC jest --config jest.config.json --verbose false --passWithNoTests", | ||
"test-watch": "cross-env TZ=UTC jest --watch --config jest.config.json", | ||
"coverage": "yarn test --coverage", | ||
"ci:bump-form-engine-lib": "yarn up @openmrs/openmrs-form-engine-lib@next" | ||
"ci:bump-form-engine-lib": "yarn up @openmrs/openmrs-form-engine-lib@next", | ||
"test-e2e": "playwright test", | ||
"postinstall": "husky install" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double check the changes here. Revert the unwanted changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! @RandilaP
Requirements
Summary
Sets up patient chart repository for e2e testing using playwright.
Related Issue
https://issues.openmrs.org/browse/O3-2106