Publish EventLens v1.1.0 (#1)
This commit was merged in pull request #1.
This commit is contained in:
1 parent
c0ade21029
commit
87432f3283
63 files changed
+7381
-1420
No files matched your search
@@ -3,14 +3,29 @@ import { expect, test } from "@playwright/test";
|
||||
function largeAnalysis(count: number) {
|
||||
return {
|
||||
source: "synthetic-large.evtx",
|
||||
events: Array.from({ length: count }, (_, index) => ({ id: String(index), timestamp: "2026-09-09T10:00:00Z", timestamp_source: "event", timestamp_valid: true, provider: "Synthetic Provider", event_id: index, level: "warning", channel: "Application", computer: "TEST-PC", category: "other", summary: `Synthetic event ${index}`, fields: { message: `Synthetic event ${index}` } })),
|
||||
events: Array.from({ length: count }, (_, index) => ({
|
||||
id: String(index),
|
||||
timestamp: "2026-09-09T10:00:00Z",
|
||||
timestamp_source: "event",
|
||||
timestamp_valid: true,
|
||||
provider: "Synthetic Provider",
|
||||
event_id: index,
|
||||
level: "warning",
|
||||
channel: "Application",
|
||||
computer: "TEST-PC",
|
||||
category: "other",
|
||||
summary: `Synthetic event ${index}`,
|
||||
fields: { message: `Synthetic event ${index}` },
|
||||
})),
|
||||
incidents: [],
|
||||
};
|
||||
}
|
||||
|
||||
test("large timelines virtualize DOM rows and keep search usable", async ({ page }) => {
|
||||
const analysis = largeAnalysis(10_000);
|
||||
await page.route("**/api/demo", (route) => route.fulfill({ status: 200, contentType: "application/json", body: JSON.stringify(analysis) }));
|
||||
await page.route("**/api/demo", (route) =>
|
||||
route.fulfill({ status: 200, contentType: "application/json", body: JSON.stringify(analysis) }),
|
||||
);
|
||||
await page.goto("/#analysis");
|
||||
await page.getByRole("button", { name: "Load demo", exact: true }).first().click();
|
||||
await expect(page.getByText("10,000", { exact: false }).first()).toBeVisible();
|
||||
|
||||
Reference in new issue
Block a user