mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 15:45:47 +01:00
Update flipper.spec.ts
This commit is contained in:
parent
9959709b72
commit
2a6b0f2ebb
1 changed files with 11 additions and 2 deletions
|
|
@ -75,9 +75,18 @@ describe('Flipper', () => {
|
|||
.get('.cdx-some-plugin')
|
||||
// Open tunes menu
|
||||
.trigger('keydown', { keyCode: TAB_KEY_CODE })
|
||||
// Navigate to delete button
|
||||
.trigger('keydown', { keyCode: ARROW_DOWN_KEY_CODE })
|
||||
// Navigate to delete button (the second button)
|
||||
.trigger('keydown', { keyCode: ARROW_DOWN_KEY_CODE })
|
||||
.trigger('keydown', { keyCode: ARROW_DOWN_KEY_CODE });
|
||||
|
||||
/**
|
||||
* Check whether we focus the Delete Tune or not
|
||||
*/
|
||||
cy.get('[data-item-name="delete"]')
|
||||
.should('have.class', 'ce-popover__item--focused');
|
||||
|
||||
cy.get('[data-cy=editorjs]')
|
||||
.get('.cdx-some-plugin')
|
||||
// Click delete
|
||||
.trigger('keydown', { keyCode: ENTER_KEY_CODE })
|
||||
// // Confirm delete
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue