Initial curated EventLens source from 0d80d3b38dfb817285481665b9e71e4b8a0656a0
This commit is contained in:
commit
663ea8c829
85 files changed
+12395
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { existsSync } from "node:fs";
|
||||
import { expect, test } from "@playwright/test";
|
||||
|
||||
const fixture = process.env.EVENTLENS_EVTX_FIXTURE;
|
||||
|
||||
test("pinned real EVTX fixture survives the browser upload path", async ({ page }) => {
|
||||
test.skip(!fixture || !existsSync(fixture), "CI supplies the hash-verified public EVTX fixture");
|
||||
await page.goto("/#analysis");
|
||||
await page.locator('input[type="file"]').setInputFiles(fixture!);
|
||||
await expect(page.locator(".metric-card").first()).toContainText("7", { timeout: 30_000 });
|
||||
await expect(page.getByText("events parsed", { exact: true })).toBeVisible();
|
||||
await page.getByRole("button", { name: "Timeline", exact: false }).click();
|
||||
await page.getByLabel("Hide informational noise").uncheck();
|
||||
await expect(page.locator(".event-row").first()).toBeVisible();
|
||||
await expect(page.getByRole("button", { name: /4625/ })).toBeVisible();
|
||||
await page.getByRole("button", { name: "Reports", exact: false }).click();
|
||||
await expect(page.getByRole("heading", { name: "Export report", exact: true })).toBeVisible();
|
||||
await page.getByRole("button", { name: /Export JSON/ }).click();
|
||||
});
|
||||
Reference in new issue
Block a user