trip) add day/week trip views (#52)
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m19s
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:
@@ -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