feat: atoms e2e tests (#23273)
* e2e tests for availability settings atom * init tests for booking page * add data test id for event type card * update tests for booking page * add data test ids for playwright tests * update test coverage for booking page
This commit is contained in:
1 parent
f4944a05c9
commit
d9adb6c1fc
4 files changed
+109
-2
No files matched your search
@@ -35,6 +35,7 @@ export default function Bookings(props: { calUsername: string; calEmail: string
|
||||
{isLoading && <p>Loading...</p>}
|
||||
{!isLoading && booking && (
|
||||
<div
|
||||
data-testid="booking-success-page"
|
||||
key={booking.id}
|
||||
className="my-10 w-[440px] overflow-hidden rounded-md border-[0.7px] border-black px-10 py-5">
|
||||
{booking.status === "accepted" ? (
|
||||
@@ -43,7 +44,9 @@ export default function Bookings(props: { calUsername: string; calEmail: string
|
||||
name="circle-check-big"
|
||||
className="my-5 flex h-[40px] w-[40px] rounded-full bg-green-500"
|
||||
/>
|
||||
<h1 className="text-xl font-bold">This meeting is scheduled</h1>
|
||||
<h1 className="text-xl font-bold" data-testid="booking-success-message">
|
||||
This meeting is scheduled
|
||||
</h1>
|
||||
<p>We sent an email with a calendar invitation with the details to everyone.</p>
|
||||
</div>
|
||||
) : (
|
||||
@@ -134,7 +137,7 @@ export default function Bookings(props: { calUsername: string; calEmail: string
|
||||
<>
|
||||
<hr className="mx-3" />
|
||||
<div className="mx-2 my-3 text-center">
|
||||
<p>
|
||||
<p data-testid="booking-redirect-or-cancel-links">
|
||||
Need to make a change?{" "}
|
||||
<button
|
||||
className="underline"
|
||||
|
||||
@@ -42,6 +42,7 @@ export default function Bookings(props: { calUsername: string; calEmail: string
|
||||
|
||||
return (
|
||||
<div
|
||||
data-testid="event-type-card"
|
||||
onClick={() => {
|
||||
setEventTypeSlug(event.slug);
|
||||
setEventTypeDuration(event.lengthInMinutes);
|
||||
|
||||
Reference in new issue
Block a user