Skip to content
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

test: [TOL-1361] Rich Text editor component tests #1565

Merged
merged 41 commits into from
Feb 23, 2024

Conversation

colomolo
Copy link
Contributor

@colomolo colomolo commented Dec 20, 2023

Moving Rich Text e2e test suites to component tests.

All e2e cleanups and test adjustments would be done in a follow up PRs.

Copy link

Marking pull request as stale since there was no activity for 30 days

@github-actions github-actions bot added the stale Used to mark when there was no activity for a set period of time label Jan 22, 2024
@colomolo colomolo added planned and removed stale Used to mark when there was no activity for a set period of time labels Jan 22, 2024

// Skipping this test because of weird Plate behavior. Will describe it in a follow up PR.
// eslint-disable-next-line mocha/no-skipped-tests
it.skip('does not delete table header cells when selecting the whole table', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plate behavior with Cmd+A and Backspace inside of tables is not very consistent and this test fails due to this. Will be addressed in a follow up PR.

@github-actions github-actions bot added the tools label Feb 19, 2024
it('it raises the non-first list item entirely', () => {
// FIX: Broken, skipping for now
// eslint-disable-next-line mocha/no-skipped-tests
it.skip('it raises the non-first list item entirely', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not clear what exactly this test should check, and what is expected result, but it's not working.

@colomolo colomolo marked this pull request as ready for review February 19, 2024 16:33
@colomolo colomolo requested a review from a team as a code owner February 19, 2024 16:33
// FIX: Add embed dialog mock to emulate entity selection/cancel embed
// Removed here: https://github.com/contentful/field-editors/pull/1565
// eslint-disable-next-line mocha/no-skipped-tests
it.skip('cancels without adding the entry block', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipping these cancel tracking tests, because we don't have an entry selection dialog mocked. Probably worth addressing in the next PRs.

Copy link
Member

@z0al z0al left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work so far. Let a few comments.

cypress/component/rich-text/RichTextEditor.spec.ts Outdated Show resolved Hide resolved
cypress/component/rich-text/RichTextPage.ts Outdated Show resolved Hide resolved
cypress/e2e/rich-text/README.md Outdated Show resolved Hide resolved
cypress/fixtures/createRichTextFakeSdk.ts Show resolved Hide resolved
yarn.lock Outdated Show resolved Hide resolved
cypress/support/component.ts Show resolved Hide resolved
yarn.lock Outdated Show resolved Hide resolved
@z0al z0al requested a review from a team February 23, 2024 09:17
@colomolo colomolo merged commit e956ebc into master Feb 23, 2024
12 checks passed
@colomolo colomolo deleted the TOL-1361-rich-text-editor-component-tests branch February 23, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants