mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-28 02:46:09 +00:00
fix(cypress): domain & glossary spec (#17162)
This commit is contained in:
parent
8ae4fc83a5
commit
539e676e29
@ -226,6 +226,8 @@ const fillForm = (formObj, type) => {
|
|||||||
|
|
||||||
cy.get('[data-testid="add-experts"]').scrollIntoView().click();
|
cy.get('[data-testid="add-experts"]').scrollIntoView().click();
|
||||||
verifyResponseStatusCode('@getUsers', 200);
|
verifyResponseStatusCode('@getUsers', 200);
|
||||||
|
cy.get('[data-testid="loader"]').should('not.exist');
|
||||||
|
|
||||||
interceptURL(
|
interceptURL(
|
||||||
'GET',
|
'GET',
|
||||||
`api/v1/search/query?q=*${encodeURI(formObj.experts)}*`,
|
`api/v1/search/query?q=*${encodeURI(formObj.experts)}*`,
|
||||||
|
@ -113,11 +113,12 @@ export const addOwner = (
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const updateOwner = (ownerName: string, dataTestId?: string) => {
|
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="edit-owner"]').click();
|
||||||
cy.get("[data-testid='select-owner-tabs']").should('be.visible');
|
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();
|
cy.get('.ant-tabs [id*=tab-users]').click();
|
||||||
|
|
||||||
|
verifyResponseStatusCode('@getUsers', 200);
|
||||||
interceptURL(
|
interceptURL(
|
||||||
'GET',
|
'GET',
|
||||||
`api/v1/search/query?q=*${encodeURI(ownerName)}*&index=user_search_index`,
|
`api/v1/search/query?q=*${encodeURI(ownerName)}*&index=user_search_index`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user