trip) add day and week trip filtering
All checks were successful
PR Checks / lint-test-and-docker-build (pull_request) Successful in 2m15s

This commit is contained in:
2026-02-24 19:20:31 +00:00
parent 2003a1aada
commit f8dcd3b2bf
5 changed files with 442 additions and 46 deletions

View File

@@ -12,7 +12,7 @@ export function uniqueSuffix(): string {
export async function createTrip(
page: Page,
values: { name: string; startDate?: string; description?: string }
values: { name: string; startDate?: string; endDate?: string; description?: string }
): Promise<{ tripUrl: string; tripId: string }> {
await page.goto(NEW_TRIP_URL);
await expect(page.getByRole('heading', { name: 'Plan New Trip' })).toBeVisible();
@@ -22,6 +22,9 @@ export async function createTrip(
} else {
await form.getByRole('checkbox', { name: "I don't know yet" }).first().check();
}
if (values.endDate) {
await form.getByLabel('End date').fill(values.endDate);
}
if (values.description) {
await form.getByLabel('Description').fill(values.description);
}