From c4a0ced7ecbde5fb3856700a3e1be44db8a67141 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Mon, 30 May 2022 10:02:13 +0530 Subject: [PATCH] fixed issue- 5185 MyData spec is failing for click on explore page (#5186) --- .../ui/cypress/integration/Pages/EntityDetails.spec.js | 1 + .../resources/ui/cypress/integration/Pages/myData.spec.js | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/EntityDetails.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/EntityDetails.spec.js index 244ad4129af..949fbe67ae5 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/EntityDetails.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/EntityDetails.spec.js @@ -30,6 +30,7 @@ describe('Entity Details Page', () => { .click(); // click on the 1st result and go to manage tab in entity details page + cy.wait(500); cy.get('[data-testid="table-link"]').first().should('be.visible').click(); cy.get('[data-testid="Manage"]').should('be.visible').click(); diff --git a/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/myData.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/myData.spec.js index 1c016a9eca6..725b707ff74 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/myData.spec.js +++ b/openmetadata-ui/src/main/resources/ui/cypress/integration/Pages/myData.spec.js @@ -34,7 +34,7 @@ describe('MyData page should work', () => { .first() .should('be.visible') .scrollIntoView(); - + cy.wait(500); cy.get('[data-testid="table-link"]').first().should('be.visible').click(); cy.get('[data-testid="inactive-link"]') @@ -89,9 +89,8 @@ describe('MyData page should work', () => { cy.wait('@searchApi'); // click on the 1st result and go to entity details page and follow the entity - cy.get('[data-testid="table-link"]').first().contains(termObj.term).as('resultLink'); - cy.wait(500); // Wait for result to load after api success - cy.get('@resultLink').click(); + cy.wait(500); + cy.get('[data-testid="table-link"]').first().contains(termObj.term).click(); cy.get('[data-testid="follow-button"]').should('be.visible').click(); // go to manage tab and search for logged in user and set the owner