Skip to content

Fixing flaky UI test Firefox_teacher_tools_level_types_bubble_choice Viewing BubbleChoice progress#58431

Merged
vijayamanohararaj merged 2 commits into
stagingfrom
vijaya/flakytest_bubblechoice
May 8, 2024
Merged

Fixing flaky UI test Firefox_teacher_tools_level_types_bubble_choice Viewing BubbleChoice progress#58431
vijayamanohararaj merged 2 commits into
stagingfrom
vijaya/flakytest_bubblechoice

Conversation

@vijayamanohararaj

@vijayamanohararaj vijayamanohararaj commented May 6, 2024

Copy link
Copy Markdown
Contributor

The eyes test is flaky in two different instances, but both fail because of "ReferenceError: $ is not defined".

Root cause: The error indicate JQuery hasn't loaded. The failure happens right after a new page load. Although we have a check for JQuery to be loaded, in these failure cases, the check runs on the old page before navigating away from it to the new page.

Fix: Updating the navigation action to also wait for the new page load.

Links

JIRA https://codedotorg.atlassian.net/browse/TEACH-1042

Testing story

Drone runs

Deployment strategy

Regular DTP

Follow-up work

None

Privacy

N/A

Security

N/A

Caching

N/A

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@vijayamanohararaj vijayamanohararaj changed the title Fixing flaky UI test Firefox_teacher_tools_level_types_bubble_choice_… Fixing flaky UI test Firefox_teacher_tools_level_types_bubble_choice Viewing BubbleChoice progress May 8, 2024
@vijayamanohararaj vijayamanohararaj marked this pull request as ready for review May 8, 2024 18:39
@vijayamanohararaj vijayamanohararaj requested review from a team and cearachew and removed request for a team May 8, 2024 18:39

@cearachew cearachew 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.

:shipit:

@vijayamanohararaj vijayamanohararaj merged commit cd96a94 into staging May 8, 2024
@vijayamanohararaj vijayamanohararaj deleted the vijaya/flakytest_bubblechoice branch May 8, 2024 21:43
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