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

(test) O3-2106: Set up patient chart repo for e2e testing #1164

Merged
merged 27 commits into from
Jun 6, 2023

Conversation

RandilaP
Copy link
Contributor

@RandilaP RandilaP commented May 22, 2023

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

Sets up patient chart repository for e2e testing using playwright.

Related Issue

https://issues.openmrs.org/browse/O3-2106

@RandilaP
Copy link
Contributor Author

@jayasanka-sack @anjula-sack @Piumal1999 Could you please review this

Comment on lines +20 to +22
username: process.env.E2E_USER_ADMIN_USERNAME,
password: process.env.E2E_USER_ADMIN_PASSWORD,
},
Copy link
Member

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.

Copy link
Contributor Author

@RandilaP RandilaP May 22, 2023

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

path: playwright-report/
retention-days: 30

testOnPush:
Copy link
Contributor

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?

Suggested change
testOnPush:
test-on-push:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No specific reason.

Copy link
Contributor

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

Copy link
Member

@jayasanka-sack jayasanka-sack left a 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?

@RandilaP
Copy link
Contributor Author

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

@jayasanka-sack
Copy link
Member

jayasanka-sack commented May 27, 2023 via email

@RandilaP
Copy link
Contributor Author

@jayasanka-sack @anjula-sack @Piumal1999 Could you please review this

Copy link
Contributor

@anjula-sack anjula-sack left a 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
Comment on lines 12 to 13
"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\"",
Copy link
Contributor

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?

Copy link
Contributor

@anjula-sack anjula-sack left a 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

@RandilaP
Copy link
Contributor Author

RandilaP commented Jun 3, 2023

@jayasanka-sack @anjula-sack @Piumal1999 Could you please review this

package.json Outdated
Comment on lines 12 to 19
"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"
Copy link
Contributor

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

@anjula-sack anjula-sack changed the title (fix) O3 2106: Set up patient chart repo for e2e testing (test) O3-2106: Set up patient chart repo for e2e testing Jun 4, 2023
Copy link
Contributor

@anjula-sack anjula-sack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! @RandilaP

@anjula-sack anjula-sack merged commit c425bb5 into openmrs:main Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants