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:
Rob JacksonandEfraín Rochín authored and GitHub committed 2023-06-10 03:47:50 +00:00
1 parent bb31c4ba14
commit 0d01d3246a
11 files changed
+151 -30

No files matched your search

@@ -83,6 +83,7 @@ export const AvailableTimes = ({
key={slot.time}
disabled={bookingFull}
data-testid="time"
data-disabled={bookingFull}
data-time={slot.time}
onClick={() => onTimeSelect(slot.time)}
className="min-h-9 mb-2 flex h-auto w-full flex-col justify-center py-2"
@@ -45,6 +45,12 @@ export const getCalEventResponses = ({
if (!label) {
throw new Error('Missing label for booking field "' + field.name + '"');
}
// If the guests field is hidden (disableGuests is set on the event type) don't try and infer guests from attendees list
if (field.name == "guests" && field.hidden) {
backwardCompatibleResponses[field.name] = [];
}
if (field.editable === "user" || field.editable === "user-readonly") {
calEventUserFieldsResponses[field.name] = {
label,