test: reorganize fixture files into modality-first layout (phase 6b)

Move all fixture files from flat/mixed dirs (content/, media/, documents/,
formats/, hostile/, root loose) into the modality-first hierarchy:
image/{valid,formats,edge,hostile}, video/{valid,formats,hostile},
audio/{valid,formats,hostile}, document/{valid,formats,edge,hostile},
data/valid/, security/. Update index.ts paths, fixtureDir aliases,
all literal refs in 17 e2e/qa/script files, manifest.json, and the
three generator scripts. 163 files moved, 0 dropped, 100 new tests
from expanded document scan.
This commit is contained in:
SnapOtter
2026-06-20 05:51:17 +08:00
parent 1727a7a73e
commit 941ed27912
199 changed files with 560 additions and 429 deletions
+9 -3
View File
@@ -86,7 +86,9 @@ test.describe("GUI Format & Conversion Tools", () => {
const fileChooserPromise = page.waitForEvent("filechooser");
await page.locator("[class*='border-dashed']").first().click();
const fileChooser = await fileChooserPromise;
await fileChooser.setFiles(path.join(process.cwd(), "tests", "fixtures", "test-100x100.svg"));
await fileChooser.setFiles(
path.join(process.cwd(), "tests", "fixtures", "image", "valid", "test-100x100.svg"),
);
await page.waitForTimeout(500);
await page.getByRole("button", { name: "Scale Factor" }).click();
@@ -294,7 +296,9 @@ test.describe("GUI Format & Conversion Tools", () => {
const fileChooserPromise = page.waitForEvent("filechooser");
await page.locator("[class*='border-dashed']").first().click();
const fileChooser = await fileChooserPromise;
await fileChooser.setFiles(path.join(process.cwd(), "tests", "fixtures", "animated.gif"));
await fileChooser.setFiles(
path.join(process.cwd(), "tests", "fixtures", "image", "valid", "animated.gif"),
);
await page.waitForTimeout(500);
await page.getByRole("button", { name: "Speed" }).first().click();
@@ -308,7 +312,9 @@ test.describe("GUI Format & Conversion Tools", () => {
const fileChooserPromise = page.waitForEvent("filechooser");
await page.locator("[class*='border-dashed']").first().click();
const fileChooser = await fileChooserPromise;
await fileChooser.setFiles(path.join(process.cwd(), "tests", "fixtures", "animated.gif"));
await fileChooser.setFiles(
path.join(process.cwd(), "tests", "fixtures", "image", "valid", "animated.gif"),
);
await page.waitForTimeout(500);
await page.getByRole("button", { name: "Extract" }).first().click();