-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
CI: run e2e flaky tests in a separate job #6365
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
{ | ||
tag: '@flaky', | ||
}, |
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.
only added this, rest are formatting changes
{ | ||
tag: '@flaky', | ||
}, |
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.
only added this, rest are formatting changes
@@ -402,7 +402,7 @@ function testSuite(charset) { | |||
await page.focus('div[contenteditable="true"]'); | |||
|
|||
await page.keyboard.type('👨👩👦👦'); | |||
if (['chromium', 'webkit'].includes(browserName)) { | |||
if (['chromium', 'webkit', 'firefox'].includes(browserName)) { |
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.
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.
this makes the below 2 conditions (charset === 'UTF-16' & charset === 'UTF-8') deadcode, any idea what settings to fall into those conditions? as now all 3 browsers render 👨👩👦👦. if no im thinking of removing it
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.
do we need playwright update in the same PR ?
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.
yes because playwright update is needed to have tag annotations
anchorOffset: 2, | ||
anchorPath: [0, 4, 0, 0], | ||
focusOffset: 2, | ||
focusPath: [0, 4, 0, 0], |
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.
firefox behavior changed after updating playwright
if (IS_WINDOWS) { | ||
await assertSelection(page, { | ||
anchorOffset: 2, | ||
anchorPath: [0, 1, 0, 0], | ||
focusOffset: 2, | ||
focusPath: [0, 1, 0, 0], | ||
}); | ||
} else { | ||
await assertSelection(page, { | ||
anchorOffset: 2, | ||
anchorPath: [0, 1, 0, 0], | ||
focusOffset: 2, | ||
focusPath: [0, 1, 0, 0], | ||
}); | ||
} |
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.
these 2 are the same so removing the windows condition
if (charset === 'UTF-16') { | ||
await assertHTML( | ||
page, | ||
html` | ||
<p | ||
class="PlaygroundEditorTheme__paragraph PlaygroundEditorTheme__ltr" | ||
dir="ltr"> | ||
<span data-lexical-text="true">👨👩</span> | ||
<span | ||
class="PlaygroundEditorTheme__characterLimit PlaygroundEditorTheme__ltr" | ||
dir="ltr"> | ||
<span data-lexical-text="true">👦👦</span> | ||
</span> | ||
</p> | ||
`, | ||
); | ||
} else { | ||
await assertHTML( | ||
page, | ||
html` | ||
<p | ||
class="PlaygroundEditorTheme__paragraph PlaygroundEditorTheme__ltr" | ||
dir="ltr"> | ||
<span data-lexical-text="true">👨</span> | ||
<span | ||
class="PlaygroundEditorTheme__characterLimit PlaygroundEditorTheme__ltr" | ||
dir="ltr"> | ||
<span data-lexical-text="true">👩👦👦</span> | ||
</span> | ||
</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.
confirmed with @zurfyx that these can be removed since now FF behaves the same as chrome and webkit
Description
to not run flaky and
to run only flaky
Test plan
Before
see the current status checks in any of the open PRs
After
monitor status checks for this PR
before accept, all checks should pass. for e2e mac canary run the ci run the command with
after accept,
ci pass 100%: https://github.com/facebook/lexical/actions/runs/9775780085/job/26991263423?pr=6365