mirror of
https://github.com/codex-team/editor.js
synced 2026-03-15 15:15:47 +01:00
Refactor test for compatibility with firefox
This commit is contained in:
parent
cb98bdc714
commit
eaafe0a4ff
1 changed files with 11 additions and 9 deletions
|
|
@ -87,11 +87,12 @@ describe('Inline Tool Link', () => {
|
|||
});
|
||||
|
||||
cy.get('[data-cy=editorjs]')
|
||||
.find('div.ce-block')
|
||||
.click()
|
||||
.type('{selectall}')
|
||||
.wait(200)
|
||||
.type('{ctrl}K');
|
||||
.find('.ce-paragraph')
|
||||
.selectText('Text with link');
|
||||
|
||||
cy.get('[data-cy=editorjs]')
|
||||
.find('[data-item-name=link]')
|
||||
.click();
|
||||
|
||||
cy.get('[data-cy=editorjs]')
|
||||
.find('.ce-inline-tool-input')
|
||||
|
|
@ -106,10 +107,11 @@ describe('Inline Tool Link', () => {
|
|||
cy.get('[data-cy=editorjs]')
|
||||
.find('div.ce-block')
|
||||
.find('a')
|
||||
.click()
|
||||
.type('{selectall}')
|
||||
.wait(200)
|
||||
.type('{ctrl}B');
|
||||
.selectText('Text with link');
|
||||
|
||||
cy.get('[data-cy=editorjs]')
|
||||
.find('[data-item-name=bold]')
|
||||
.click();
|
||||
|
||||
cy.get('[data-cy=editorjs]')
|
||||
.find('div.ce-block')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue