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:
@@ -81,7 +81,7 @@ test.describe("OCR / Text Extraction", () => {
|
||||
test("uploads image and OCR processing completes", async ({ loggedInPage: page }) => {
|
||||
await skipIfFeatureNotInstalled(page);
|
||||
|
||||
await uploadOcrFile(page, "tests/fixtures/test-portrait.jpg");
|
||||
await uploadOcrFile(page, "tests/fixtures/image/valid/test-portrait.jpg");
|
||||
await submitOcr(page);
|
||||
|
||||
const hasText = await page.getByTestId("ocr-result-text").isVisible();
|
||||
@@ -92,7 +92,7 @@ test.describe("OCR / Text Extraction", () => {
|
||||
test("copy button is visible after OCR completes", async ({ loggedInPage: page }) => {
|
||||
await skipIfFeatureNotInstalled(page);
|
||||
|
||||
await uploadOcrFile(page, "tests/fixtures/test-portrait.jpg");
|
||||
await uploadOcrFile(page, "tests/fixtures/image/valid/test-portrait.jpg");
|
||||
await submitOcr(page);
|
||||
|
||||
await expect(page.getByText("Copy")).toBeVisible();
|
||||
@@ -101,7 +101,7 @@ test.describe("OCR / Text Extraction", () => {
|
||||
test("shows 'no text detected' for blank image", async ({ loggedInPage: page }) => {
|
||||
await skipIfFeatureNotInstalled(page);
|
||||
|
||||
await uploadOcrFile(page, "tests/fixtures/test-blank.png");
|
||||
await uploadOcrFile(page, "tests/fixtures/image/edge/test-blank.png");
|
||||
await submitOcr(page);
|
||||
|
||||
await expect(page.getByText("No text detected")).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user