MCPcopy Create free account
hub / github.com/coder/coder / resetSearch

Function resetSearch

site/e2e/tests/auditLogs.spec.ts:27–37  ·  view source on GitHub ↗
(page: Page, username: string)

Source from the content-addressed store, hash-verified

25};
26
27async function resetSearch(page: Page, username: string) {
28 const clearButton = page.getByLabel("Clear search");
29 if (await clearButton.isVisible()) {
30 await clearButton.click();
31 }
32
33 // Filter by the auditor test user to prevent race conditions
34 await expect(page.getByText("All users")).toBeVisible();
35 await page.getByPlaceholder("Search...").fill(`username:${username}`);
36 await expect(page.getByText("All users")).not.toBeVisible();
37}
38
39test.describe("audit logs", () => {
40 requiresLicense();

Callers 1

auditLogs.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected