From fa50838691af477d769f045993affb20aa585f6c Mon Sep 17 00:00:00 2001 From: Tisha Soumya Date: Wed, 15 Jan 2025 13:24:08 +0530 Subject: [PATCH] fix cypress --- cypress/tests/block.cy.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cypress/tests/block.cy.js b/cypress/tests/block.cy.js index 0a26666..68ef28f 100644 --- a/cypress/tests/block.cy.js +++ b/cypress/tests/block.cy.js @@ -20,11 +20,14 @@ context('Block Acceptance Tests', () => { cy.get('h2:contains(Heading h2)').should('be.visible'); }); + it('As editor I can add a Heading H3 block ', () => { cy.visit('/document/edit'); cy.addNewBlock('heading'); - // cy.get('#field-tag > .react-select__control').click(); - // cy.get('#react-select-38-option-1').click(); + cy.get('#field-tag > .react-select__control > .react-select__indicators >') + .trigger('click') + .findByText('h3') + .click(); cy.get('.editable').click().type('Heading h3'); cy.get('#toolbar-save').click(); cy.visit('/document');