From 0a2fa231452d0415c6649de19f1a040619b0c65f Mon Sep 17 00:00:00 2001 From: bcgov-brwang <87880048+bcgov-brwang@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:52:15 -0800 Subject: [PATCH] ORV2-3221: updated ORV2-3221: updated --- tests/cypress/e2e/idir-amend-term-oversize.cy.js | 5 ++++- tests/cypress/e2e/idir-void-term-oversize.cy.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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();