Skip to content

Commit eaafe0a

Browse files
committed
Refactor test for compatibility with firefox
1 parent cb98bdc commit eaafe0a

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

test/cypress/tests/inline-tools/link.cy.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ describe('Inline Tool Link', () => {
8787
});
8888

8989
cy.get('[data-cy=editorjs]')
90-
.find('div.ce-block')
91-
.click()
92-
.type('{selectall}')
93-
.wait(200)
94-
.type('{ctrl}K');
90+
.find('.ce-paragraph')
91+
.selectText('Text with link');
92+
93+
cy.get('[data-cy=editorjs]')
94+
.find('[data-item-name=link]')
95+
.click();
9596

9697
cy.get('[data-cy=editorjs]')
9798
.find('.ce-inline-tool-input')
@@ -106,10 +107,11 @@ describe('Inline Tool Link', () => {
106107
cy.get('[data-cy=editorjs]')
107108
.find('div.ce-block')
108109
.find('a')
109-
.click()
110-
.type('{selectall}')
111-
.wait(200)
112-
.type('{ctrl}B');
110+
.selectText('Text with link');
111+
112+
cy.get('[data-cy=editorjs]')
113+
.find('[data-item-name=bold]')
114+
.click();
113115

114116
cy.get('[data-cy=editorjs]')
115117
.find('div.ce-block')

0 commit comments

Comments
 (0)