mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-04-21 23:36:43 +02:00
Dateien nach „tests/e2e“ hochladen
This commit is contained in:
parent
9501b6e0ac
commit
943de1f01f
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
|||
import { expect } from '@playwright/test';
|
||||
import { test, dynamic_id, save_visual } from './utils_e2e.ts';
|
||||
|
||||
test.use({user: 'user2'});
|
||||
test.use({ user: 'user2' });
|
||||
|
||||
test('drap and drop upload', async ({ page }, workerInfo) => {
|
||||
const response = await page.goto(`/user2/file-uploads/_upload/main/`);
|
||||
|
@ -24,9 +24,9 @@ test('drap and drop upload', async ({ page }, workerInfo) => {
|
|||
const dt = new DataTransfer();
|
||||
|
||||
// add items in different folders
|
||||
dt.items.add(new File(["Filecontent"], 'dir1/file1.txt', { type: 'text/plain' }));
|
||||
dt.items.add(new File(["Another file's content"], 'double/nested/file.txt', { type: 'text/plain' }));
|
||||
dt.items.add(new File(["Root file"], 'root_file.txt', { type: 'text/plain' }));
|
||||
dt.items.add(new File(["Filecontent (dir1/file1.txt)"], 'dir1/file1.txt', { type: 'text/plain' }));
|
||||
dt.items.add(new File(["Another file's content (double/nested/file.txt)"], 'double/nested/file.txt', { type: 'text/plain' }));
|
||||
dt.items.add(new File(["Root file (root_file.txt)"], 'root_file.txt', { type: 'text/plain' }));
|
||||
|
||||
return dt;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue