test: Add E2E tests for seated attendee rescheduling or cancelling bookings (#9422)
* Add test for attendees rescheduling bookings * Add tests for rescheduling seated bookings (first attendee) * Fix tests not skipping disabled times on new booker UI * Add tests for rescheduling seated bookings (all attendees) * Remove duplicate tests (my mistake) * Add explicit test ids for cancel inputs * Add E2E tests for seated attendees cancelling their bookings * Update E2E tests for a seated attendee rescheduling their booking * Update tests to remove dependence on localised text * Updated seated E2E tests to remove testing of unused URL --------- Co-authored-by: Efraín Rochín <[email protected]>
This commit is contained in:
1 parent
bb31c4ba14
commit
0d01d3246a
11 files changed
+151
-30
No files matched your search
@@ -161,7 +161,8 @@ const AvailableTimes: FC<AvailableTimesProps> = ({
|
||||
brand === "#fff" || brand === "#ffffff" ? "" : ""
|
||||
)}
|
||||
onClick={() => reserveSlot(slot)}
|
||||
data-testid="time">
|
||||
data-testid="time"
|
||||
data-disabled="false">
|
||||
{dayjs(slot.time).tz(timeZone()).format(timeFormat)}
|
||||
{!!seatsPerTimeSlot && (
|
||||
<p
|
||||
|
||||
@@ -59,6 +59,7 @@ export default function CancelBooking(props: Props) {
|
||||
<div className="mt-5 sm:mt-6">
|
||||
<label className="text-default font-medium">{t("cancellation_reason")}</label>
|
||||
<TextArea
|
||||
data-testid="cancel_reason"
|
||||
ref={cancelBookingRef}
|
||||
placeholder={t("cancellation_reason_placeholder")}
|
||||
value={cancellationReason}
|
||||
@@ -75,7 +76,7 @@ export default function CancelBooking(props: Props) {
|
||||
{t("nevermind")}
|
||||
</Button>
|
||||
<Button
|
||||
data-testid="cancel"
|
||||
data-testid="confirm_cancel"
|
||||
onClick={async () => {
|
||||
setLoading(true);
|
||||
|
||||
|
||||
Reference in new issue
Block a user