Skip to content

Retain editor selection when using ReactEditor.focus() #3685

Retain editor selection when using ReactEditor.focus()

Retain editor selection when using ReactEditor.focus() #3685

Triggered via pull request September 21, 2023 18:59
Status Success
Total duration 5m 27s
Artifacts

ci.yml

on: pull_request
Matrix: ci
Fit to window
Zoom out
Zoom in

Annotations

2 errors, 15 warnings, and 1 notice
[chromium] › integration/examples/inlines.test.ts:18:7 › Inlines example › arrow keys skip over read-only inline: playwright/integration/examples/inlines.test.ts#L37
1) [chromium] › integration/examples/inlines.test.ts:18:7 › Inlines example › arrow keys skip over read-only inline Error: expect(received).toBe(expected) // Object.is equality - Expected - 1 + Received + 3 - . + In addition to block nodes, you can create inline nodes. Here is a  hyperlink , and here is a more unusual inline: an  editable button ! Here is a read-only inline:  Approved . + + There are two ways to add links. You can either add a link via the toolbar icon above, or if you want in on a little secret, copy a URL to your keyboard and paste it while a range of text is selected.  Finally, here is our favorite dog video.  35 | }) 36 | > 37 | expect(await getSelectionContainerText()).toBe('.') | ^ 38 | await page.keyboard.press('ArrowLeft') 39 | expect(await getSelectionContainerText()).toBe( 40 | '! Here is a read-only inline: ' at /home/runner/work/slate/slate/playwright/integration/examples/inlines.test.ts:37:47
[firefox] › integration/examples/huge-document.test.ts:13:7 › huge document example › contains image: playwright/integration/examples/huge-document.test.ts#L15
2) [firefox] › integration/examples/huge-document.test.ts:13:7 › huge document example › contains image Error: expect(received).toBe(expected) // Object.is equality Expected: 100 Received: 0 13 | test('contains image', async ({ page }) => { 14 | for (const { tag, count } of elements) { > 15 | expect(await page.locator(tag).count()).toBe(count) | ^ 16 | } 17 | }) 18 | }) at /home/runner/work/slate/slate/playwright/integration/examples/huge-document.test.ts:15:47
lint:prettier
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint:prettier
Unexpected input(s) 'key', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
lint:prettier
Unexpected input(s) 'key', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
Unexpected input(s) 'key', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
test
Unexpected input(s) 'key', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
lint:typescript
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint:typescript
Unexpected input(s) 'key', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
lint:typescript
Unexpected input(s) 'key', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
lint:eslint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint:eslint
Unexpected input(s) 'key', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
lint:eslint
Unexpected input(s) 'key', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
test:integration
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test:integration
Unexpected input(s) 'key', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
test:integration
Unexpected input(s) 'key', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
🎭 Playwright Run Summary
2 flaky [chromium] › integration/examples/inlines.test.ts:18:7 › Inlines example › arrow keys skip over read-only inline [firefox] › integration/examples/huge-document.test.ts:13:7 › huge document example › contains image 74 passed (4m)