mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-24 17:59:52 +00:00
fix user cypress failure (#16728)
This commit is contained in:
parent
1ad1d820d8
commit
cd5d8dfa06
@ -197,14 +197,11 @@ class UsersTestClass {
|
||||
cy.get('[data-testid="inline-save-btn"]').click();
|
||||
verifyResponseStatusCode('@updateTeam', 200);
|
||||
|
||||
cy.get('.ant-collapse-expand-icon > .anticon > svg').click();
|
||||
cy.get('[data-testid="edit-description"]').click();
|
||||
cy.get(descriptionBox).clear();
|
||||
interceptURL('PATCH', '/api/v1/users/*', 'patchDescription');
|
||||
cy.get('[data-testid="save"]').should('be.visible').click();
|
||||
verifyResponseStatusCode('@patchDescription', 200);
|
||||
cy.get('.ant-collapse-expand-icon > .anticon > svg').scrollIntoView();
|
||||
cy.get('.ant-collapse-expand-icon > .anticon > svg').click();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -143,11 +143,11 @@ export const restoreUserProfilePage = async (page: Page, fqn: string) => {
|
||||
|
||||
await restoreResponse;
|
||||
|
||||
await expect(page.getByRole('alert')).toHaveText(
|
||||
await expect(page.getByRole('alert').first()).toHaveText(
|
||||
/User restored successfully/
|
||||
);
|
||||
|
||||
await page.getByLabel('close').click();
|
||||
await page.getByLabel('close').first().click();
|
||||
|
||||
await nonDeletedUserChecks(page);
|
||||
};
|
||||
@ -175,9 +175,9 @@ export const hardDeleteUserProfilePage = async (
|
||||
|
||||
await deleteResponse;
|
||||
|
||||
await expect(page.locator('.Toastify__toast-body')).toHaveText(
|
||||
await expect(page.getByRole('alert').first()).toHaveText(
|
||||
/deleted successfully!/
|
||||
);
|
||||
|
||||
await page.click('.Toastify__close-button');
|
||||
await page.getByLabel('close').first().click();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user