-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[lexical][lexical-table] Feature: Scrollable tables with experimental getDOMSlot API #6759
Changes from all commits
4639f77
f9b537a
351dc2f
5214e0a
4447e64
38f364c
3bf7484
03752b2
498f255
34e14cf
6e9f425
3c1e805
9f029bf
f79f445
62169b8
36a14dc
7052b50
1eda439
3783c88
abdbd52
13d0c5e
4f4cc34
5089142
6d5baef
1e644d1
3f629f1
f068536
6d81cdc
aa44e02
1e9bc54
50dadbc
9bc9c33
6453a4b
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 |
---|---|---|
|
@@ -17,7 +17,9 @@ import { | |
} from '../../../utils/index.mjs'; | ||
|
||
test.describe('HTML Tables CopyAndPaste', () => { | ||
test.beforeEach(({isCollab, page}) => initialize({isCollab, page})); | ||
test.beforeEach(({isCollab, page}) => | ||
initialize({isCollab, page, tableHorizontalScroll: false}), | ||
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. Use legacy behavior in these tests, no need to test the wrapper (it is not exported or imported) |
||
); | ||
|
||
test('Copy + paste (Table - Google Docs)', async ({ | ||
page, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,9 @@ import { | |
} from '../utils/index.mjs'; | ||
|
||
test.describe.parallel('Selection', () => { | ||
test.beforeEach(({isCollab, page}) => initialize({isCollab, page})); | ||
test.beforeEach(({isCollab, page}) => | ||
initialize({isCollab, page, tableHorizontalScroll: false}), | ||
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. Selection scenarios with the wrapper are tested in the tables suite, no need to refactor here |
||
); | ||
test('does not focus the editor on load', async ({page}) => { | ||
const editorHasFocus = async () => | ||
await evaluate(page, () => { | ||
|
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.
Adding the assertions and the delay/sleeps here seems to sort out the flakiness of this test. It would be nice if we had a better way to wait on specific history events. I assume the arrow key delay fix has something to do with waiting a tick for the selection to get resolved correctly.