fix(cypress): domain & glossary spec (#17162)

This commit is contained in:
Chirag Madlani 2024-07-24 18:46:03 +05:30 committed by GitHub
parent 8ae4fc83a5
commit 539e676e29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -226,6 +226,8 @@ const fillForm = (formObj, type) => {
cy.get('[data-testid="add-experts"]').scrollIntoView().click();
verifyResponseStatusCode('@getUsers', 200);
cy.get('[data-testid="loader"]').should('not.exist');
interceptURL(
'GET',
`api/v1/search/query?q=*${encodeURI(formObj.experts)}*`,

View File

@ -113,11 +113,12 @@ export const addOwner = (
};
export const updateOwner = (ownerName: string, dataTestId?: string) => {
interceptURL('GET', '/api/v1/users?*isBot=false*', 'getUsers');
cy.get('[data-testid="edit-owner"]').click();
cy.get("[data-testid='select-owner-tabs']").should('be.visible');
cy.log('/api/v1/users?limit=*&isBot=false*');
cy.get('.ant-tabs [id*=tab-users]').click();
verifyResponseStatusCode('@getUsers', 200);
interceptURL(
'GET',
`api/v1/search/query?q=*${encodeURI(ownerName)}*&index=user_search_index`,