trip) add day and week trip filtering
All checks were successful
PR Checks / lint-test-and-docker-build (pull_request) Successful in 2m15s
All checks were successful
PR Checks / lint-test-and-docker-build (pull_request) Successful in 2m15s
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user