-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
Playwright test resultsDetails Open report ↗︎ Flaky testschrome › tests/pageEditor/addStarterBrick.spec.ts › Add starter brick to mod Skipped testschrome › tests/regressions/doNotCloseSidebarOnPageEditorSave.spec.ts › #8104: Do not automatically close the sidebar when saving in the Page Editor |
await expect( | ||
modActivationPage | ||
.locator(".form-group") | ||
.filter({ hasText: /^GIPHY — ✨ Built-in$/ }), | ||
).toBeVisible(); |
There was a problem hiding this comment.
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`,
)
}
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
What does this PR do?