Skip to content

Add steps to wait until pages load to (hopefully) reduce flakiness - #51204

Merged
bethanyaconnor merged 1 commit into
stagingfrom
bethany/speculative-ui-test-deflakes-0407
Apr 10, 2023
Merged

Add steps to wait until pages load to (hopefully) reduce flakiness#51204
bethanyaconnor merged 1 commit into
stagingfrom
bethany/speculative-ui-test-deflakes-0407

Conversation

@bethanyaconnor

@bethanyaconnor bethanyaconnor commented Apr 7, 2023

Copy link
Copy Markdown
Contributor

Adds steps to wait until pages load to reduce flakiness on a couple of tests that are sitting on our flakiness threshold. See this Slack message; unfortunately, I don't have a great idea for the flakiest test in the list.

Failing run for the data docs test: https://app.saucelabs.com/tests/4cb268509f9d48168cb46e7332ce854d#72
Failing run for the end-of-lesson test: https://app.saucelabs.com/tests/ccaa79c2574948af8fe77d816f587c10#21

@bethanyaconnor
bethanyaconnor requested a review from a team April 7, 2023 16:52

@hannahbergam hannahbergam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

TIL about the levelbuilder version of steps.rb. Thanks for this!

# On last level of the lesson
And I am on "http://studio.code.org/s/csp3-2019/lessons/3/levels/1"
And I click selector ".submitButton"
And I wait until I am on "http://studio.code.org/s/csp3-2019"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Curious about the difference between this line and the line below. Excited to see if it helps!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My theory is that the browser hasn't even tried to load the page yet so the next command was running on the previous page (and succeeding). 100% speculative though

@bethanyaconnor
bethanyaconnor merged commit 5b03aac into staging Apr 10, 2023
@bethanyaconnor
bethanyaconnor deleted the bethany/speculative-ui-test-deflakes-0407 branch April 10, 2023 20:23
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.

3 participants