From d511ebfd2c3b835c2e9119aa92035a6cf9c4691a Mon Sep 17 00:00:00 2001 From: Filip Hlavac Date: Mon, 6 Jan 2025 13:21:13 +0100 Subject: [PATCH] fix: fix E2E tests --- cypress/e2e/DataView.spec.cy.ts | 4 ++-- package-lock.json | 20 +++++++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/DataView.spec.cy.ts b/cypress/e2e/DataView.spec.cy.ts index 80ef0a8..2504ab7 100644 --- a/cypress/e2e/DataView.spec.cy.ts +++ b/cypress/e2e/DataView.spec.cy.ts @@ -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 diff --git a/package-lock.json b/package-lock.json index ce4a0eb..9e89670 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12581,6 +12581,15 @@ "readable-stream": "^2.3.6" } }, + "node_modules/focus-trap": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.6.2.tgz", + "integrity": "sha512-9FhUxK1hVju2+AiQIDJ5Dd//9R2n2RAfJ0qfhF4IHGHgcoEUTMpbTeG/zbEuwaiYXfuAH6XE0/aCyxDdRM+W5w==", + "license": "MIT", + "dependencies": { + "tabbable": "^6.2.0" + } + }, "node_modules/follow-redirects": { "version": "1.5.10", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", @@ -36682,6 +36691,14 @@ "readable-stream": "^2.3.6" } }, + "focus-trap": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.6.2.tgz", + "integrity": "sha512-9FhUxK1hVju2+AiQIDJ5Dd//9R2n2RAfJ0qfhF4IHGHgcoEUTMpbTeG/zbEuwaiYXfuAH6XE0/aCyxDdRM+W5w==", + "requires": { + "tabbable": "^6.2.0" + } + }, "follow-redirects": { "version": "1.5.10", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", @@ -45284,7 +45301,8 @@ } }, "tabbable": { - "version": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==" }, "tapable": {