mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -197,7 +197,14 @@ test.describe("GUI Expanded Tool Coverage", () => {
|
||||
await page.goto("/compare");
|
||||
|
||||
// Set second image via file input
|
||||
const testFixture = path.join(process.cwd(), "tests", "fixtures", "test-200x150.png");
|
||||
const testFixture = path.join(
|
||||
process.cwd(),
|
||||
"tests",
|
||||
"fixtures",
|
||||
"image",
|
||||
"valid",
|
||||
"test-200x150.png",
|
||||
);
|
||||
await page.locator("#compare-second-image").setInputFiles(testFixture);
|
||||
await page.waitForTimeout(300);
|
||||
|
||||
@@ -216,7 +223,14 @@ test.describe("GUI Expanded Tool Coverage", () => {
|
||||
await page.goto("/compare");
|
||||
await uploadTestImage(page);
|
||||
|
||||
const testFixture = path.join(process.cwd(), "tests", "fixtures", "test-200x150.png");
|
||||
const testFixture = path.join(
|
||||
process.cwd(),
|
||||
"tests",
|
||||
"fixtures",
|
||||
"image",
|
||||
"valid",
|
||||
"test-200x150.png",
|
||||
);
|
||||
await page.locator("#compare-second-image").setInputFiles(testFixture);
|
||||
await page.waitForTimeout(300);
|
||||
|
||||
@@ -227,7 +241,14 @@ test.describe("GUI Expanded Tool Coverage", () => {
|
||||
await page.goto("/compare");
|
||||
await uploadTestImage(page);
|
||||
|
||||
const testFixture = path.join(process.cwd(), "tests", "fixtures", "test-200x150.png");
|
||||
const testFixture = path.join(
|
||||
process.cwd(),
|
||||
"tests",
|
||||
"fixtures",
|
||||
"image",
|
||||
"valid",
|
||||
"test-200x150.png",
|
||||
);
|
||||
await page.locator("#compare-second-image").setInputFiles(testFixture);
|
||||
await page.waitForTimeout(300);
|
||||
|
||||
@@ -241,7 +262,14 @@ test.describe("GUI Expanded Tool Coverage", () => {
|
||||
await page.goto("/compare");
|
||||
await uploadTestImage(page);
|
||||
|
||||
const testFixture = path.join(process.cwd(), "tests", "fixtures", "test-200x150.png");
|
||||
const testFixture = path.join(
|
||||
process.cwd(),
|
||||
"tests",
|
||||
"fixtures",
|
||||
"image",
|
||||
"valid",
|
||||
"test-200x150.png",
|
||||
);
|
||||
await page.locator("#compare-second-image").setInputFiles(testFixture);
|
||||
await page.waitForTimeout(300);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user