Skip to content

Commit

Permalink
fix: update 'Add Tabs default template' cypress test - Default tabs t…
Browse files Browse the repository at this point in the history
…ext to be inside a span within the tab link instead of a p tag
  • Loading branch information
claudiaifrim committed Mar 6, 2024
1 parent a675429 commit 4209573
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cypress/e2e/01-block-tabs.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,15 @@ describe('Blocks Tests', () => {
// then the page view should contain our changes
cy.contains('Tabs block default template');

cy.get('.tabs-block p').contains('Tab 2').parent().focus().type('{enter}');
cy.get('.tabs-block span.menu-item-text')
.contains('Tab 2')
.parent()
.focus()
.type('{enter}');

cy.contains('Oxygen');

cy.get('.tabs-block p').contains('Tab 1').click();
cy.get('.tabs-block span.menu-item-text').contains('Tab 1').click();

cy.contains('Hydrogen');
});
Expand Down

0 comments on commit 4209573

Please sign in to comment.