Files
edr-platform/e2e-ui/specs/portal/ua7-berth.spec.ts

18 lines
1.0 KiB
TypeScript

import { test } from "@playwright/test";
/**
* UA-7 — round trip, berth/bed class, INTERNATIONAL/USD. DEFERRED (documented, not silently omitted).
*
* A berth booking needs a bed coach type whose seat classes carry a bedPosition the fare engine can
* price. The current seed has only regular (bedPosition=null) classes, and UA-6 already shows the
* reverse-leg (round-trip) pricing returns empty coach types on this route. Enabling UA-7 requires
* two backend/seed prerequisites that are out of scope here:
* 1. A bed CoachType + LOCAL/INTL SeatClasses with bedPosition IN (UPPER,MIDDLE,LOWER) + a bed
* Coach with lowercase-bedPosition Seats (matrix §5.4), priced by the fare engine.
* 2. Reverse-direction (return-leg) fare resolution, currently unsupported (see UA-6).
*
* Once both exist, drive: bookTrip with a bed seat class + tripType ROUND_TRIP, asserting the berth
* surcharge is applied consistently on both legs.
*/
test.skip("UA-7: round-trip berth booking (needs bed coach-type seed + reverse-leg pricing)", () => {});