diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/DataInsightUtils.ts b/openmetadata-ui/src/main/resources/ui/cypress/common/DataInsightUtils.ts index 139e0292783..2bcfb91262e 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/DataInsightUtils.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/DataInsightUtils.ts @@ -50,8 +50,8 @@ export const checkDataInsightSuccessStatus = ( ) { waitForTimer(timer, count); } else { - if ($ingestionStatus.text() !== 'Success') { - cy.get('@checkRun').should('have.text', 'Success'); + if ($ingestionStatus.text() === 'Success') { + expect($ingestionStatus.text()).eq('Success'); isSuccessStatus = true; } diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/DomainUtils.ts b/openmetadata-ui/src/main/resources/ui/cypress/common/DomainUtils.ts index cf2f20c2a3b..7c060206055 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/common/DomainUtils.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/common/DomainUtils.ts @@ -200,7 +200,7 @@ const updateDescription = (newDescription) => { }; const fillForm = (formObj, type) => { - interceptURL('GET', '/api/v1/users?limit=25&isBot=false', 'getUsers'); + interceptURL('GET', '/api/v1/users?*isBot=false*', 'getUsers'); cy.get('[data-testid="name"]').scrollIntoView().clear().type(formObj.name); cy.get(descriptionBox) @@ -224,14 +224,20 @@ const fillForm = (formObj, type) => { cy.get('[data-testid="owner-container"]').children().should('have.length', 1); cy.get('[data-testid="add-experts"]').scrollIntoView().click(); + verifyResponseStatusCode('@getUsers', 200); + interceptURL( + 'GET', + `api/v1/search/query?q=*${encodeURI(formObj.experts)}*`, + 'searchExpert' + ); cy.get('.user-select-popover [data-testid="searchbar"]').type( formObj.experts ); - cy.get(`[title="${formObj.experts}"]`).scrollIntoView().click(); - cy.get('[data-testid="selectable-list-update-btn"]') - .should('exist') - .and('be.visible') + verifyResponseStatusCode('@searchExpert', 200); + cy.get(`.user-select-popover [title="${formObj.experts}"]`) + .scrollIntoView() .click(); + cy.get('[data-testid="selectable-list-update-btn"]').click(); cy.get('[data-testid="delete-modal"]').should('not.exist'); cy.get('[data-testid="experts-container"]') diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Database.spec.ts b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Database.spec.ts index 8558e52c91c..0cace729572 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Database.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Database.spec.ts @@ -33,7 +33,8 @@ const OWNER2 = 'Cynthia Meyer'; const TEAM_OWNER_1 = 'Marketplace'; const TEAM_OWNER_2 = 'DevOps'; -describe('Database hierarchy details page', { tags: 'DataAssets' }, () => { +// migrated to playwrigth +describe.skip('Database hierarchy details page', { tags: 'DataAssets' }, () => { before(() => { cy.login(); diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Entity.spec.ts b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Entity.spec.ts index 61f40202a38..c58a5879783 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Entity.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Entity.spec.ts @@ -42,7 +42,8 @@ const OWNER2 = 'Cynthia Meyer'; const TEAM_OWNER_1 = 'Marketplace'; const TEAM_OWNER_2 = 'DevOps'; -describe('Entity detail page', { tags: 'DataAssets' }, () => { +// migrated to playwrigth +describe.skip('Entity detail page', { tags: 'DataAssets' }, () => { before(() => { cy.login(); diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Glossary.spec.ts b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Glossary.spec.ts index e810e5d3140..b2f7be4c79a 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Glossary.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Glossary.spec.ts @@ -1222,9 +1222,10 @@ describe('Glossary page should work properly', { tags: 'Governance' }, () => { // checking the breadcrumb, if the change parent term is updated and displayed cy.get('[data-testid="breadcrumb-link"]') - .should('be.visible') .contains(`${parentTerm.name}`) - .click(); + .as('breadcrumb'); + + cy.get('@breadcrumb').click(); verifyResponseStatusCode('@fetchGlossaryTermData', 200); diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Services.spec.ts b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Services.spec.ts index 8d968c5e657..62452838681 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Services.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Services.spec.ts @@ -38,7 +38,8 @@ const OWNER2 = 'Cynthia Meyer'; const TEAM_OWNER_1 = 'Marketplace'; const TEAM_OWNER_2 = 'DevOps'; -describe('Services detail page', { tags: 'Integration' }, () => { +// migrated to playwrigth +describe.skip('Services detail page', { tags: 'Integration' }, () => { before(() => { cy.login(); EntityClass.preRequisitesForTests(); diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Teams.spec.ts b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Teams.spec.ts index 2cb6263556f..c0fe6233843 100644 --- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Teams.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/Teams.spec.ts @@ -83,11 +83,12 @@ describe('Teams flow should work properly', { tags: 'Settings' }, () => { .should('exist') .invoke('text') .then((text) => { - interceptURL('GET', '/api/v1/users?limit=15', 'getUsers'); + interceptURL('GET', '/api/v1/users?limit=*', 'getUsers'); // Clicking on edit owner button cy.get('[data-testid="edit-owner"]').click(); cy.get('.user-team-select-popover').contains('Users').click(); + cy.wait('@getUsers'); cy.get('[data-testid="owner-select-users-search-bar"]').type(text); cy.get('[data-testid="selectable-list"]') .eq(1)