Minor: Fixes for AUTs (#21795)

* Increase the timeout for CustomizeLandingPage test

* add await on the API response
This commit is contained in:
Aniket Katkar 2025-06-17 15:53:30 +05:30 committed by GitHub
parent 0f79d8ea1d
commit 7faad00be6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.');