feat: refine share flow and download handling

This commit is contained in:
xixu-me committed 2026-03-22 13:50:36 +08:00
1 parent f8b727c3f6
commit 2f3a5daafc
16 files changed
+222 -323

No files matched your search

+2 -2
View File
@@ -212,7 +212,7 @@ async function createSingleFileTransfer(
})
await page.getByRole('button', { name: 'Start transfer' }).click()
await expect(page).toHaveURL(/\/share\//, { timeout: 60_000 })
await expect(page.getByRole('heading', { name: 'Share the full link.' })).toBeVisible({
await expect(page.getByRole('heading', { name: 'Share this transfer.' })).toBeVisible({
timeout: 60_000,
})
await expect(page.locator('.status-badge').filter({ hasText: 'Ready' })).toBeVisible({
@@ -254,7 +254,7 @@ async function createFolderTransfer(
}, options.files)
await page.getByRole('button', { name: 'Start transfer' }).click()
await expect(page).toHaveURL(/\/share\//, { timeout: 60_000 })
await expect(page.getByRole('heading', { name: 'Share the full link.' })).toBeVisible({
await expect(page.getByRole('heading', { name: 'Share this transfer.' })).toBeVisible({
timeout: 60_000,
})
await expect(page.locator('.status-badge').filter({ hasText: 'Ready' })).toBeVisible({