More flexible regex, 8k years in future scheduled time (#33706)

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
jacobshandling 2025-10-01 09:05:02 -07:00 committed by GitHub
parent e235fda3c7
commit 6037c67217
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ const teamBatchSummariesHandler = http.get(
script_name: "Test Script 1",
status: "scheduled",
finished_at: null,
not_before: "2099-01-01T10:11:00.000Z",
not_before: "9999-01-01T10:11:00.000Z",
}),
],
meta: { has_next_results: false, has_previous_results: false },
@ -198,7 +198,7 @@ describe("ScriptBatchProgress", () => {
await waitFor(() => {
expect(screen.getByText("Test Script 1")).toBeInTheDocument();
expect(screen.getByText(/Will start/)).toBeInTheDocument();
expect(screen.getByText(/in over \d+ years/)).toBeInTheDocument();
expect(screen.getByText(/in (about|over) \d+ years/)).toBeInTheDocument();
});
});