fixed issue- 5185 MyData spec is failing for click on explore page (#5186)

This commit is contained in:
Shailesh Parmar 2022-05-30 10:02:13 +05:30 committed by GitHub
parent 256e192d7a
commit c4a0ced7ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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