@@ -81,6 +81,25 @@ test("downloads the minimized case and exact predicate report", async ({
|
||||
);
|
||||
});
|
||||
|
||||
test("minimizes a deterministic multi-file bundle with stability sampling", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto("/deep/nested/minimize/");
|
||||
await page.getByLabel("Failure predicate").selectOption("contains");
|
||||
const bundleInput = page.locator('input[type="file"][multiple]');
|
||||
await bundleInput.setInputFiles([
|
||||
"tests/fixtures/noise.txt",
|
||||
"tests/fixtures/case.txt",
|
||||
]);
|
||||
await expect(page.getByText("2 bundle files active")).toBeVisible();
|
||||
await page.getByRole("button", { name: "Minimize reproducer" }).click();
|
||||
await expect(
|
||||
page.getByRole("heading", { name: "Minimized bundle" }),
|
||||
).toBeVisible();
|
||||
await expect(page.getByText(/2 → 1 files/u)).toBeVisible();
|
||||
await expect(page.getByText(/flaky candidates observed/u)).toBeVisible();
|
||||
});
|
||||
|
||||
test("integrates help, themes, identity, headers and offline reload", async ({
|
||||
page,
|
||||
request,
|
||||
@@ -111,7 +130,7 @@ test("integrates help, themes, identity, headers and offline reload", async ({
|
||||
const manifest = await request.get("/deep/nested/minimize/toolbox-app.json");
|
||||
await expect(manifest.json()).resolves.toMatchObject({
|
||||
id: "de.add-ideas.minimize-tools",
|
||||
version: "0.1.0",
|
||||
version: "0.2.0",
|
||||
privacy: { processing: "local", telemetry: false },
|
||||
});
|
||||
await context.setOffline(true);
|
||||
|
||||
Reference in New Issue
Block a user