Skip to content

Commit

Permalink
fix cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Dec 21, 2020
1 parent 02612b0 commit 7f6788a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions cypress/integration/blocks-accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,15 @@ describe('Block Tests', () => {
.click()
.type('panel 1')
.should('have.value', 'panel 1');
cy.get(
'.accordion:nth-child(1) > .content:nth-child(2) p[data-slate-node= "element"]',
)
.should('have.value', '')
.invoke('attr', 'tabindex', 1)
.wait(1000)
.type('children', { delay: 50 });
cy.get('div.slate-editor')
.first()
.within(() => {
cy.get('p[data-slate-node="element"]')
.should('have.value', '')
.invoke('attr', 'tabindex', 1)
.wait(1000)
.type('children', { delay: 50 });
});
cy.get('.accordion:nth-child(2) > .title input').click();
cy.get('.accordion:nth-child(2) > .title input').type('panel 2');
cy.get('.accordion:nth-child(2) > .title > .icon').click();
Expand Down

0 comments on commit 7f6788a

Please sign in to comment.