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

#9087 Wait for built-in integration before activating mod in e2e test #9088

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

mnholtz
Copy link
Collaborator

@mnholtz mnholtz commented Sep 4, 2024

What does this PR do?

Copy link

github-actions bot commented Sep 4, 2024

Playwright test results

passed  124 passed
flaky  2 flaky
skipped  6 skipped

Details

report  Open report ↗︎
stats  132 tests across 44 suites
duration  11 minutes, 28 seconds
commit  36c0783
info  For more information on how to debug and view this report, see our readme

Flaky tests

chrome › tests/pageEditor/addStarterBrick.spec.ts › Add starter brick to mod
msedge › tests/pageEditor/addStarterBrick.spec.ts › Add starter brick to mod

Skipped tests

chrome › tests/regressions/doNotCloseSidebarOnPageEditorSave.spec.ts › #8104: Do not automatically close the sidebar when saving in the Page Editor
msedge › tests/regressions/doNotCloseSidebarOnPageEditorSave.spec.ts › #8104: Do not automatically close the sidebar when saving in the Page Editor
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
chrome › tests/runtime/insertAtCursor.spec.ts › Insert at Cursor › 8154: can insert at cursor after opening sidebar from selection menu
msedge › tests/runtime/insertAtCursor.spec.ts › Insert at Cursor › 8154: can insert at cursor after opening sidebar from selection menu

Comment on lines 118 to 122
await expect(
modActivationPage
.locator(".form-group")
.filter({ hasText: /^GIPHY — ✨ Built-in$/ }),
).toBeVisible();
Copy link
Collaborator

Choose a reason for hiding this comment

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

We have a page object helper method in the modsPage to select an option from the integration dependencies in this activation form.

You could consider extracting some of that common logic for getting a locator handle for any given integration dependency form group. I.e.

await expect(modActivationPage.integrationConfig(0)).toHaveText(/^GIPHY — ✨ Built-in$/)
export class ActivateModPage extends BasePageObject {

  get integrationConfig(index: number) {
    return await this.getByTestId(
        `integration-auth-selector-integrationDependencies.${index}.configId`,
      )
  }

Copy link

github-actions bot commented Sep 4, 2024

No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack.

Do not edit this comment manually.

@mnholtz mnholtz marked this pull request as draft September 4, 2024 21:59
@mnholtz mnholtz marked this pull request as ready for review September 4, 2024 21:59
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.69%. Comparing base (8318d74) to head (36c0783).
Report is 257 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9088      +/-   ##
==========================================
+ Coverage   74.24%   74.69%   +0.44%     
==========================================
  Files        1332     1344      +12     
  Lines       40817    41651     +834     
  Branches     7634     7752     +118     
==========================================
+ Hits        30306    31112     +806     
- Misses      10511    10539      +28     

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

@mnholtz mnholtz merged commit ad8d224 into main Sep 4, 2024
20 checks passed
@mnholtz mnholtz deleted the feature/9087_test_flakiness branch September 4, 2024 22:45
@grahamlangford grahamlangford added this to the 2.1.1 milestone Sep 5, 2024
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