@samitouri / QOSami-HFS / commits / 3eb6d14f

dx: extended upload1 test

Massimo Melina committed Jan 27, 2026 at 11:53 UTC 3eb6d14f6e39714da7f143b5682511be53ba8646
2 files changed +9 -4
e2e/frontend.spec.ts
+1 -1
@@ -120,7 +120,7 @@ test('search1', async ({ page }) => {
120 await page.getByRole('button', { name: 'Search' }).click()
121 await page.locator('input[name="name"]').fill('a')
122 await page.getByRole('button', { name: 'Continue' }).click()
123 - await page.getByText('files, 12 folders, 29.3 KB').click()
123 + await page.getByText('12 folders').click()
124 await page.getByRole('link', { name: 'cantListPage/ alfa.txt' }).click()
125 await page.getByRole('button', { name: 'Close' }).click()
126 await page.getByRole('button', { name: 'Clear search' }).click()
e2e/serial.spec.ts
+8 -3
@@ -1,13 +1,18 @@
1 -import { test } from '@playwright/test'
1 +import { expect, test } from '@playwright/test'
2 import { wait } from '../src/cross'
3 import { clearUploads, password, uploadName, URL, username } from './common'
4
5 // this test is separated to run serially, as it will modify folder timestamp for a few seconds, during which other tests may fail
6 +test.describe.configure({ mode: 'serial' }) // to disconnect the upload consistently, i need only 1 upload at a time
7
7 -export const fileToUpload = 'dev-plugins.md'
8 +export const fileToUpload = {
9 + name: 'upload-test.bin',
10 + mimeType: 'application/octet-stream',
11 + buffer: Buffer.alloc(100_000),
12 +}
13
14 test('upload1', async ({ page, context, browserName }) => {
10 - if (page.viewportSize()?.width! < 1000 || browserName !== 'chromium') return // test only for desktop, as only chromium has cdpSession, and to disconnect i need only 1 upload at a time
15 + if (browserName !== 'chromium') return // only chromium has cdpSession
16 await page.goto(URL);
17 await page.getByRole('button', { name: 'Login' }).click();
18 await page.getByRole('textbox', { name: 'Username' }).fill(username);