trip) add day/week trip views (#52)
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m19s

Reviewed-on: #52
Co-authored-by: AI Agent <ai-agent@campbellwireless.net>
Co-committed-by: AI Agent <ai-agent@campbellwireless.net>
This commit was merged in pull request #52.
This commit is contained in:
2026-02-24 20:17:26 +00:00
committed by shaun
parent 2003a1aada
commit 4aabf47108
9 changed files with 500 additions and 49 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);
}