Skip to content

Commit 9e19931

Browse files
committed
e2e(FR-2464): review and rewrite failing VFolder e2e tests (#6477)
Resolves #6415(FR-2464) ## Summary - Fix TOML duplicate key parsing with `deduplicateTomlKeys()` utility - Replace fragile CSS selectors with `navigateTo()` and `selectPropertyFilter()` - Improve share/invitation flow with proper modal handling and visibility checks - Add extended timeouts for `afterAll` cleanup hooks (delete-forever operations) - Make `test.describe.serial` where tests share state (creation, sharing) - Improve `deleteForeverAndVerifyFromTrash` flow with button enabled wait ## Test plan - [ ] All VFolder E2E tests pass against test server - [ ] VFolder CRUD lifecycle test passes end-to-end - [ ] VFolder sharing test passes with proper cleanup
1 parent 99c55d0 commit 9e19931

12 files changed

Lines changed: 240 additions & 92 deletions

e2e/utils/classes/vfolder/FolderExplorerModal.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ export class FolderExplorerModal {
5353
name: 'upload Upload',
5454
});
5555
await expect(uploadButton).toBeVisible({ timeout: 10000 });
56+
// Give the modal toolbar a moment to settle so click() doesn't fail with
57+
// "element is not stable" under heavy parallel load.
58+
await this.page.waitForTimeout(300);
5659
return uploadButton;
5760
}
5861

@@ -61,6 +64,7 @@ export class FolderExplorerModal {
6164
name: 'folder-add Create Folder',
6265
});
6366
await expect(createButton).toBeVisible();
67+
await this.page.waitForTimeout(300);
6468
return createButton;
6569
}
6670

@@ -138,7 +142,7 @@ export class FolderExplorerModal {
138142
await expect(
139143
this.modal.getByRole('cell').filter({ hasText: fileName }),
140144
).toBeVisible({
141-
timeout: 10000,
145+
timeout: 30000,
142146
});
143147
}
144148
}

0 commit comments

Comments
 (0)