mirror of
https://github.com/codex-team/editor.js
synced 2024-06-09 17:32:31 +02:00
tests fixed
This commit is contained in:
parent
75625d7d07
commit
51d37c751f
|
@ -286,10 +286,6 @@ export default class Popover extends EventsDispatcher<PopoverEventMap> {
|
|||
private make(): void {
|
||||
this.nodes.popover = Dom.make('div', [ Popover.CSS.popover ]);
|
||||
|
||||
if (import.meta.env.MODE === 'test') {
|
||||
this.nodes.popover.setAttribute('data-cy', 'popover');
|
||||
}
|
||||
|
||||
this.nodes.nothingFoundMessage = Dom.make('div', [ Popover.CSS.nothingFoundMessage ], {
|
||||
textContent: this.messages.nothingFound,
|
||||
});
|
||||
|
|
|
@ -20,7 +20,7 @@ describe('Slash keydown', function () {
|
|||
.type('/');
|
||||
|
||||
cy.get('[data-cy="toolbox"]')
|
||||
.get('[data-cy="popover"]')
|
||||
.get('.ce-popover')
|
||||
.should('be.visible');
|
||||
});
|
||||
});
|
||||
|
@ -46,7 +46,7 @@ describe('Slash keydown', function () {
|
|||
.type('/');
|
||||
|
||||
cy.get('[data-cy="toolbox"]')
|
||||
.get('[data-cy="popover"]')
|
||||
.get('.ce-popover')
|
||||
.should('not.be.visible');
|
||||
|
||||
/**
|
||||
|
@ -81,7 +81,7 @@ describe('CMD+Slash keydown', function () {
|
|||
.type('{cmd}/');
|
||||
|
||||
cy.get('[data-cy="block-tunes"]')
|
||||
.get('[data-cy="popover"]')
|
||||
.get('.ce-popover')
|
||||
.should('be.visible');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue