diff --git a/tests/cypress/e2e/idir-amend-term-oversize.cy.js b/tests/cypress/e2e/idir-amend-term-oversize.cy.js index 8d8db278f..df8a8b23d 100644 --- a/tests/cypress/e2e/idir-amend-term-oversize.cy.js +++ b/tests/cypress/e2e/idir-amend-term-oversize.cy.js @@ -34,7 +34,10 @@ describe('Login Test for OnRouteBC', () => { cy.wait(wait_time); cy.get('.search-by__search').click(); cy.wait(wait_time); - cy.xpath("//button[text()='Test Transport Inc.']").click(); + // cy.xpath("//button[text()='Test Transport Inc.']").click(); + cy.get('button.MuiTypography-root.MuiTypography-body2.MuiLink-root.MuiLink-underlineAlways.MuiLink-button.custom-action-link.css-mn35dv') + .first() + .click(); cy.wait(wait_time); diff --git a/tests/cypress/e2e/idir-void-term-oversize.cy.js b/tests/cypress/e2e/idir-void-term-oversize.cy.js index 74969e9a3..d9dffbb17 100644 --- a/tests/cypress/e2e/idir-void-term-oversize.cy.js +++ b/tests/cypress/e2e/idir-void-term-oversize.cy.js @@ -174,7 +174,10 @@ describe('Login Test for OnRouteBC', () => { cy.get('.search-by__search').click(); cy.wait(wait_time); - cy.xpath("//button[text()='Test Transport Inc.']").click(); + // cy.xpath("//button[text()='Test Transport Inc.']").click(); + cy.get('button.MuiTypography-root.MuiTypography-body2.MuiLink-root.MuiLink-underlineAlways.MuiLink-button.custom-action-link.css-mn35dv') + .first() + .click(); cy.wait(wait_time); cy.xpath("//div[@class='tab__label' and text()='Active Permits']").click();