mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 12:36:56 +00:00
Minor: Fixes for AUTs (#21795)
* Increase the timeout for CustomizeLandingPage test * add await on the API response
This commit is contained in:
parent
0f79d8ea1d
commit
7faad00be6
@ -64,8 +64,6 @@ test.describe('Customize Landing Page Flow', () => {
|
||||
test('Add,Remove and Reset widget should work properly', async ({
|
||||
adminPage,
|
||||
}) => {
|
||||
test.slow(true);
|
||||
|
||||
await redirectToHomePage(adminPage);
|
||||
await setUserDefaultPersona(adminPage, persona.responseData.displayName);
|
||||
|
||||
@ -233,11 +231,15 @@ test.describe('Customize Landing Page Flow', () => {
|
||||
await adminPage.locator('[data-testid="reset-button"]').click();
|
||||
|
||||
// Confirm reset in modal
|
||||
const resetResponse = adminPage.waitForResponse('/api/v1/docStore/*');
|
||||
|
||||
await adminPage
|
||||
.locator('[data-testid="reset-layout-modal"] .ant-modal-footer')
|
||||
.locator('text=Yes')
|
||||
.click();
|
||||
|
||||
await resetResponse;
|
||||
|
||||
// Verify the toast notification
|
||||
await toastNotification(adminPage, 'Page layout updated successfully.');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user