diff --git a/cypress/e2e/rich-text/RichTextEditor.spec.ts b/cypress/e2e/rich-text/RichTextEditor.spec.ts index a99bda3a8b..adfcc1dff3 100644 --- a/cypress/e2e/rich-text/RichTextEditor.spec.ts +++ b/cypress/e2e/rich-text/RichTextEditor.spec.ts @@ -267,7 +267,18 @@ describe('Rich Text Editor', { viewportHeight: 2000 }, () => { .type(`{${mod}+shift+e}`) .type('{enter}'); - richText.expectSnapshotValue(); + const expectedValue = doc( + block(BLOCKS.UL_LIST, {}, block(BLOCKS.LIST_ITEM, {}, emptyParagraph())), + paragraphWithText('some text 1'), + entryBlock(), + emptyParagraph(), + paragraphWithText('some more text'), + entryBlock(), + emptyParagraph(), + emptyParagraph() + ); + + richText.expectValue(expectedValue); cy.unsetShouldConfirm(); }); }); diff --git a/cypress/e2e/rich-text/RichTextPage.ts b/cypress/e2e/rich-text/RichTextPage.ts index 3f4fb892ab..cf85e84336 100644 --- a/cypress/e2e/rich-text/RichTextPage.ts +++ b/cypress/e2e/rich-text/RichTextPage.ts @@ -107,6 +107,8 @@ export class RichTextPage { cy.wait(500); cy.getRichTextField().should((field) => { + console.log('actual:', field.getValue()); + console.log('expected:', expectedValue); expect(field.getValue()).to.deep.equal(expectedValue); }); diff --git a/package.json b/package.json index 8275c04861..b54bfb6391 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "watch": "lerna run --stream watch", "tsc": "turbo run tsc", "test:ci": "turbo run test:ci", - "test:integration": "start-server-and-test storybook http://localhost:9000 cy:run", + "test:integration": "start-server-and-test storybook http://localhost:9000 cy:open", "prettier": "prettier './**/*.{js,jsx,ts,tsx}' --write", "cy:open": "TZ=UTC cypress open", "cy:open:ct": "TZ=UTC cypress open --component",