mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 18:36:08 +00:00
fix cypress for dataModelVersionPage (#16715)
This commit is contained in:
parent
6b7e9238f7
commit
25efd7641e
@ -69,12 +69,20 @@ export const addOwner = (
|
||||
dataTestId?: string,
|
||||
verifyPatchResponse = true
|
||||
) => {
|
||||
interceptURL(
|
||||
'GET',
|
||||
'/api/v1/search/query?q=*&index=team_search_index*',
|
||||
'getTeams'
|
||||
);
|
||||
interceptURL('GET', '/api/v1/users?*isBot=false*', 'getUsers');
|
||||
cy.get('[data-testid="edit-owner"]')
|
||||
.scrollIntoView()
|
||||
.click({ waitForAnimations: false });
|
||||
|
||||
cy.get("[data-testid='select-owner-tabs']").should('be.visible');
|
||||
|
||||
verifyResponseStatusCode('@getTeams', 200); // wait for teams to load before switching the tab
|
||||
|
||||
cy.get('.ant-tabs [id*=tab-users]')
|
||||
.scrollIntoView()
|
||||
.click({ waitForAnimations: false });
|
||||
|
Loading…
x
Reference in New Issue
Block a user