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

Fix flaky mod definitions test #9532

Merged
merged 4 commits into from
Nov 18, 2024
Merged

Fix flaky mod definitions test #9532

merged 4 commits into from
Nov 18, 2024

Conversation

twschiller
Copy link
Contributor

@twschiller twschiller commented Nov 15, 2024

What does this PR do?

  • Fix flaky mod definitions test to prevent "Mod definitions not loaded yet. Try again." error

Remaining Work

  • Fix/confirm fix

For more information on our expectations for the PR process, see the
code review principles doc

@twschiller twschiller marked this pull request as draft November 15, 2024 22:30
@twschiller twschiller changed the title Fix flaky mod definitions test [WIP] fix flaky mod definitions test Nov 15, 2024
Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.82%. Comparing base (8318d74) to head (f7e8670).
Report is 518 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9532      +/-   ##
==========================================
+ Coverage   74.24%   75.82%   +1.57%     
==========================================
  Files        1332     1429      +97     
  Lines       40817    43176    +2359     
  Branches     7634     7948     +314     
==========================================
+ Hits        30306    32737    +2431     
+ Misses      10511    10439      -72     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Nov 15, 2024

Playwright test results

passed  153 passed
flaky  1 flaky
skipped  2 skipped

Details

report  Open report ↗︎
stats  156 tests across 51 suites
duration  10 minutes, 1 second
commit  f7e8670
info  For more information on how to debug and view this report, see our readme

Flaky tests

chrome › tests/telemetry/errors.spec.ts › can report an indexdb error to telemetry service

Skipped tests

chrome › tests/runtime/googleSheetsIntegration.spec.ts › can activate a google spreadsheet mod with config options
msedge › tests/runtime/googleSheetsIntegration.spec.ts › can activate a google spreadsheet mod with config options

@twschiller twschiller changed the title [WIP] fix flaky mod definitions test Ffix flaky mod definitions test Nov 17, 2024
@twschiller twschiller changed the title Ffix flaky mod definitions test Fix flaky mod definitions test Nov 17, 2024
@twschiller twschiller marked this pull request as ready for review November 17, 2024 13:15
@twschiller twschiller added this to the 2.2.1 milestone Nov 17, 2024
@@ -151,14 +151,25 @@ test("load mod definitions and save one", async () => {
API_PATHS.REGISTRY_BRICKS,
]);

// Avoid race where mod definitions/editable package queries aren't loaded in the useSaveMod hook yet
await waitFor(async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@fungairino fungairino merged commit 9231596 into main Nov 18, 2024
25 checks passed
@fungairino fungairino deleted the feature/flaky-test branch November 18, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants