Support firstName and lastName query params (#11420)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2023-09-18 21:28:07 +05:30
1 parent 8ba09ce04d
commit c9c634cceb
2 files changed
+27

No files matched your search

@@ -153,6 +153,25 @@ test.describe("Manage Booking Questions", () => {
});
});
});
await test.step("Verify that we can prefill name field with firstName,lastName query params", async () => {
const searchParams = new URLSearchParams();
searchParams.append("firstName", "John");
searchParams.append("lastName", "Doe");
await doOnFreshPreviewWithSearchParams(searchParams, page, context, async (page) => {
await selectFirstAvailableTimeSlotNextMonth(page);
await expectSystemFieldsToBeThereOnBookingPage({
page,
isFirstAndLastNameVariant: true,
values: {
name: {
firstName: "John",
lastName: "Doe",
},
},
});
});
});
});
});