Skip to content

Commit

Permalink
fix more slate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Apr 18, 2024
1 parent 46af613 commit 5343b27
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('Block Tests: Links', () => {
it('As editor I can add a link and pressing enter does not add another link in the next block', function () {
// https://github.com/plone/volto/pull/5186
cy.get('#toolbar').click();
cy.getSlate().type('Colorless green ideas sleep furiously');
cy.getSlateEditorAndType('Colorless green ideas sleep furiously');

cy.log('Create a Link');

Expand All @@ -111,8 +111,8 @@ describe('Block Tests: Links', () => {
'https://google.com{enter}',
);
cy.getSlate().should('have.descendants', 'a.slate-editor-link');
cy.getSlate().type('{rightarrow}').type('{enter}');
cy.getSlate().type('Hello').type('{enter}');
cy.getSlateEditorAndType('{rightarrow}').type('{enter}');
cy.getSlateEditorAndType('Hello').type('{enter}');

cy.toolbarSave();

Expand Down

0 comments on commit 5343b27

Please sign in to comment.