-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
(test) Amend E2E test for retained inputs in clinical forms workspace #1959
Conversation
Size Change: 0 B Total Size: 14.2 MB ℹ️ View Unchanged
|
@denniskigen I see the test failing in GitHub Actions. |
@denniskigen it seems the |
9ffd7fd
to
f654af9
Compare
2e4154e
to
093d22e
Compare
093d22e
to
d76a264
Compare
@@ -193,6 +193,7 @@ test('Form state is retained when minimizing a form in the workspace', async ({ | |||
}); | |||
|
|||
await test.step('And I fill in values for the `White Blood Cells (WBC)`, `Platelets`, and `Neutrophils` questions', async () => { | |||
await page.locator('#ManualInputWhiteBloodCells').waitFor(); |
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.
@denniskigen waiting for the locator of White Blood Count to load before filling it out seems to prevent data loss.
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’ve run the GA 4 times, and the test passed each time.
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.
Yep. Looks like that did the trick! I've run it a couple more times too. Thanks, @kdaud. We should probably document this somewhere.
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.
IIRC, the same behaviour occurs non-deterministically in the results viewer spec.
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.
We should probably document this somewhere.
Not sure where to document 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.
That's fine, I'll sort it out. Mind approving the PR?
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.
LGTM
Thanks @denniskigen |
Requirements
Summary
This PR amends the Clinical Forms E2E test to fix a flaky spec that tests whether form input values are retained when maximizing and minimizing the forms workspace. Here's an example of a test failure with the flaky test. Here's a video showing the test failure from the run:
video.2.webm
It appears that the
White blood cells
input gets cleared for whatever reason. I've tweaked the locators we're using to access and fill the inputs to use more robust matchers in the hope that that reduces the flakiness of the test. We'll find out soon enough whether this works.Screenshots
Related Issue
Other