Skip to content

Commit d511ebf

Browse files
committed
fix: fix E2E tests
1 parent 9b08955 commit d511ebf

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

cypress/e2e/DataView.spec.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ describe('Test the Data view docs page', () => {
2929
cy.get(`[data-ouia-component-id="${ouiaId}-td-0-4"]`).contains('Timestamp one');
3030

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

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

3939
// page checkbox deselect

package-lock.json

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)