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

tests(increase-coverage): weekly tests PR #4202

Merged
merged 8 commits into from
Jun 5, 2024
Merged

Conversation

IbrahimCSAE
Copy link
Collaborator

Context

This is a weekly tests PR.

Copy link

netlify bot commented Jun 3, 2024

Deploy Preview for ohif-platform-docs ready!

Name Link
🔨 Latest commit 05f0ad8
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/666098bcf477050008ba0a86
😎 Deploy Preview https://deploy-preview-4202--ohif-platform-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 3, 2024

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit 05f0ad8
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/666098bc3df4150008b3b09c
😎 Deploy Preview https://deploy-preview-4202--ohif-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@IbrahimCSAE IbrahimCSAE requested a review from sedghi June 3, 2024 18:45
Copy link

cypress bot commented Jun 3, 2024

Passing run #4046 ↗︎

0 44 2 0 Flakiness 0

Details:

Merge branch 'master' into test/weekly-test-pr
Project: Viewers Commit: 05f0ad8bb3
Status: Passed Duration: 05:23 💡
Started: Jun 5, 2024 5:09 PM Ended: Jun 5, 2024 5:14 PM

Review all test suite changes for PR #4202 ↗︎

@IbrahimCSAE
Copy link
Collaborator Author

tests failing in the CI are unrelated to my changes

mpr: {
mprDisplayedCorrectly: 'mprDisplayedCorrectly.png',
angle: {
viewportLoaded: 'viewportLoaded.png',
Copy link
Member

Choose a reason for hiding this comment

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

why there are so many viewportLoaded that basically the same thing?

Copy link
Collaborator Author

@IbrahimCSAE IbrahimCSAE Jun 4, 2024

Choose a reason for hiding this comment

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

The idea is, along side checking that the network is idle, each test should check for an image that indicates the viewer is in a state that’s ready for testing (no black viewports, etc), one reliable way to do it, to get a screenshot of the loaded state, and compare against it until its ready, if that state is not reached in time just fail the test and exit.

i think each test should have it’s own loaded state images, duplicated or not its fine, in this case they all have the same state so it looks the same but that won’t always be the case, for example a more advanced test that touches 3D hanging protocols, should have multiple images like 3DOnlyLoaded, 3DPrimaryLoaded, then if you would like to test the trackballrotate tool, you wait first for the viewer state to match that image, then test the tool.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this is also more reliable than CS3D events cuz they are not always accurate either

});

test('should display the probe tool', async ({ page }) => {
await checkForScreenshot(page, page, screenShotPaths.probe.viewportLoaded);
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand why we start by checking the screenshot, that should be a separate test to check loading

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I answered above

Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

see my comments please

@IbrahimCSAE IbrahimCSAE force-pushed the test/weekly-test-pr branch from 5d49bd7 to b96eac0 Compare June 5, 2024 16:14
@IbrahimCSAE IbrahimCSAE requested a review from sedghi June 5, 2024 16:23
@sedghi sedghi merged commit 9f8ad28 into master Jun 5, 2024
8 of 9 checks passed
@sedghi sedghi mentioned this pull request Jul 9, 2024
17 tasks
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.

2 participants