Skip to content

Commit

Permalink
test: attempt fix typing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colomolo committed Jan 20, 2025
1 parent 21b8e36 commit c62ceed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions cypress/component/rich-text/RichTextEditor.HR.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Rich Text Editor - HR', { viewportHeight: 2000, viewportWidth: 1000 },
const expectDocumentToBeEmpty = () => richText.expectValue(undefined);

function addBlockquote(content = '') {
richText.editor.click().type(content);
richText.editor.click({ force: true }).type(content);

richText.toolbar.quote.click();

Expand Down Expand Up @@ -70,7 +70,8 @@ describe('Rich Text Editor - HR', { viewportHeight: 2000, viewportWidth: 1000 },
richText.expectValue(expectedValue);
});

it('should split blockquote', () => {
// eslint-disable-next-line mocha/no-exclusive-tests
it.only('should split blockquote', () => {
addBlockquote('some text');

richText.editor.type('{enter}some text{uparrow}');
Expand Down
5 changes: 3 additions & 2 deletions cypress/component/rich-text/RichTextEditor.Quotes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ describe('Rich Text Editor - Quotes', { viewportHeight: 2000, viewportWidth: 100
richText.expectValue(expectedValue);
});

it('should add multi-paragraph block quotes', () => {
richText.editor.click().type('paragraph 1');
// eslint-disable-next-line mocha/no-exclusive-tests
it.only('should add multi-paragraph block quotes', () => {
richText.editor.click({ force: true }).type('paragraph 1');

toggleQuote();

Expand Down

0 comments on commit c62ceed

Please sign in to comment.