Skip to content

Commit

Permalink
fix: fix E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fhlavac committed Jan 6, 2025
1 parent 9b08955 commit d511ebf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/DataView.spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ describe('Test the Data view docs page', () => {
cy.get(`[data-ouia-component-id="${ouiaId}-td-0-4"]`).contains('Timestamp one');

// test bulk select
cy.get(`input[type="checkbox"`).each(($checkbox) => {cy.wrap($checkbox).should('not.be.checked')});
cy.get(`[data-ouia-component-id="LayoutExample"] input[type="checkbox"]`).each(($checkbox) => {cy.wrap($checkbox).should('not.be.checked')});

// page checkbox select
cy.get(`[data-ouia-component-id="BulkSelect-checkbox"`).first().click();
cy.get(`input[type="checkbox"`).each(($checkbox) => {cy.wrap($checkbox).should('be.checked')});
cy.get(`[data-ouia-component-id="LayoutExample"] input[type="checkbox"]`).each(($checkbox) => {cy.wrap($checkbox).should('be.checked')});
cy.contains('5 selected').should('exist');

// page checkbox deselect
Expand Down
20 changes: 19 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d511ebf

Please sign in to comment.