Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/dags/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export default async function DAGs({
detail="Fresh fleet data requires Airflow credentials, Upstash Redis, and the scheduled refresh. Page requests never scan the production fleet."
/>
)}
<form method="get" className="filter-form">
{/* Stops the browser restoring an unsubmitted selection on Back. */}
<form method="get" className="filter-form" autoComplete="off">
<label>
Search DAGs
<input
Expand Down
7 changes: 7 additions & 0 deletions tests/dashboard.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ test("review and DAG filters use URL state", async ({
.selectOption({ value: "failed" });
await screen.getByRole("button", "Filter DAGs").tap();
await expect(browser).toHaveURL(/q=church.*state=failed/);
const runState = screen.getByLabel("Run state", { exact: true });
await runState.selectOption({ value: "no_runs" });
await screen.getByRole("button", "Filter DAGs").tap();
await expect(browser).toHaveURL(/state=no_runs/);
await browser.back();
await expect(browser).toHaveURL(/state=failed/);
await expect(runState).toHaveValue("failed");
});
test("mobile navigation stays usable", async ({ app, browser, screen }) => {
await browser.setViewport({ width: 390, height: 844 });
Expand Down
Loading