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

#8815 E2E test for sidebar partner auth #8862

Merged
merged 11 commits into from
Jul 18, 2024

Conversation

mnholtz
Copy link
Collaborator

@mnholtz mnholtz commented Jul 16, 2024

What does this PR do?

Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.38%. Comparing base (8318d74) to head (bc42c69).
Report is 96 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8862      +/-   ##
==========================================
+ Coverage   74.24%   74.38%   +0.13%     
==========================================
  Files        1332     1340       +8     
  Lines       40817    41198     +381     
  Branches     7634     7710      +76     
==========================================
+ Hits        30306    30646     +340     
- Misses      10511    10552      +41     

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

Copy link

github-actions bot commented Jul 16, 2024

Playwright test results

passed  107 passed
flaky  1 flaky
skipped  4 skipped

Details

report  Open report ↗︎
stats  112 tests across 37 suites
duration  6 minutes, 55 seconds
commit  bc42c69
info  For more information on how to debug and view this report, see our readme

Flaky tests

edgeSetup › setup/unaffiliated.setup.ts › authenticate with unaffiliated user

Skipped tests

chrome › tests/regressions/doNotCloseSidebarOnPageEditorSave.spec.ts › #8104: Do not automatically close the sidebar when saving in the Page Editor
edge › 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
edge › tests/runtime/googleSheetsIntegration.spec.ts › can activate a google spreadsheet mod with config options

try {
await connectLink.click();
} catch {
// There is a known issue with Edge where clicking external links in the sidebar will implicitly cause the sidebar to be
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

Choose a reason for hiding this comment

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

One thing to consider is to only conditionally swallow the error if this test is being run in msedge.

// Another msedge bug causes the browser to fail to open the extension console page from the sidebar until you refresh the page.
// "Error: This script should only be loaded in a browser extension."
await extensionConsolePage.reload();
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For now, I copied this logic from another test because I'm not sure how to extract it neatly into a POM since it spans two POMs (the sidebar and the extension console)

This is also only the second time we've had to do this so I propose waiting until we see this at least one more time before extracting

Copy link

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.

@twschiller twschiller merged commit 039c172 into main Jul 18, 2024
34 checks passed
@twschiller twschiller deleted the bugfix/8815_connect_button_sidebar branch July 18, 2024 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect partner auth flow from sidebar
3 participants