Skip to content

Conversation

@backportbot-nextcloud
Copy link

Backport of #4285

@cypress
Copy link

cypress bot commented Jun 19, 2023

1 failed and 1 flaky tests on run #10413 ↗︎

1 143 1 2 Flakiness 1

Details:

[stable26] Fix/2708 pasting tables
Project: Text Commit: 5a596bfab9
Status: Failed Duration: 05:47 💡
Started: Jun 22, 2023 4:18 PM Ended: Jun 22, 2023 4:24 PM
Failed  cypress/e2e/directediting.spec.js • 1 failed test

View Output Video

Test Artifacts
direct editing > Open an existing file, edit and close it Output Screenshots
Flakiness  cypress/e2e/share.spec.js • 1 flaky test

View Output Video

Test Artifacts
Open test.md in viewer > Share a file with download disabled shows an error Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

Fixes #2708.

Try to read the first table row as headings.

Pasting works via `insertContent` while opening uses `setContent`.
They use the schema in different ways.
So we also need to make sure to test both for some corner cases.

`setContent` is fairly flexible in turning the input
into a valid document structure.
`insertContent` however fails to resolve structures
that would require picking lower priority parent elements.

Note: Some tests in src/tests/nodes/Table.spec.js
fail when using `insertContent` instead of `setContent`.
Pasting the correponding html table is fixed never the less.

Signed-off-by: Max <[email protected]>
@juliusknorr juliusknorr force-pushed the backport/4285/stable26 branch from ca5f28c to 1d9f9fe Compare June 22, 2023 15:48
@juliusknorr
Copy link
Member

/compile

1 similar comment
@juliusknorr
Copy link
Member

/compile

Signed-off-by: nextcloud-command <[email protected]>
@juliusknorr juliusknorr merged commit d68a6fa into stable26 Jun 22, 2023
@juliusknorr juliusknorr deleted the backport/4285/stable26 branch June 22, 2023 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working format: markdown

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants