tests fixed

This commit is contained in:
Peter Savchenko 2023-12-21 22:12:43 +03:00
parent 75625d7d07
commit 51d37c751f
No known key found for this signature in database
GPG key ID: E68306B1AB0F727C
2 changed files with 3 additions and 7 deletions

View file

@ -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,
});

View file

@ -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');
});
});