-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix frontend test failures across all browsers #7416
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
Changes from all commits
d16e3ae
a01e3df
60ddbef
de73edf
3c2a1a1
d1b7d23
19ae682
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,8 @@ import { | |
| import {disableStickyChat, enableStickyChatviaSettings, hideSettings, showSettings} from "../helper/settingsHelper"; | ||
|
|
||
|
|
||
| test.beforeEach(async ({ page })=>{ | ||
| test.beforeEach(async ({ page, context })=>{ | ||
| await context.clearCookies(); | ||
|
Comment on lines
+17
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3. chat.spec beforeeach misindented The newly added context.clearCookies() line (and surrounding modified setup) is not indented with 2 spaces as required. This violates the formatting/indentation compliance rule. Agent Prompt
|
||
| await goToNewPad(page); | ||
| }) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ test('should go to home on pad', async ({page}) => { | |
| expect(attribute).toBe('pad.toolbar.home.title'); | ||
|
|
||
| await homeButton.click(); | ||
| await page.waitForURL((url) => !url.pathname.includes('/p/')); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 4. editbar.spec waitforurl misindented The newly added page.waitForURL(...) line is not indented with 2 spaces as required. This violates the code formatting standard for indentation. Agent Prompt
|
||
| const url = page.url(); | ||
| expect(url).not.toContain('/p/'); | ||
| }) | ||
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.
2. padhelper added waits misindented
📘 Rule violation⚙ MaintainabilityThe newly added waitForSelector('#editorcontainer.initialized') lines are not indented with 2 spaces as required. This introduces formatting that violates the indentation standard.Agent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools