UNPKG

qe-fe-automation

Version:
32 lines (30 loc) 984 B
import { TrainBookings, TrainCards, TrainInterceptApis, TrainItinerary, TrainSearchModalUtil, DeutscheBahnBookingParams, AgencyCurrency } from '@train-lib/index'; describe('Train: Deutsche Bahn BahnCard 50 1ère', () => { it( 'C9171143: Should be able to book one way trip with BahnCard 50 1ère', { tags: ['@db', '@all_train_test'] }, () => { const loyaltyCard = TrainCards.BahnCard50; TrainInterceptApis.interceptTrainApis(); TrainSearchModalUtil.createCompanyWithProviderName({ feeModelInfo: AgencyCurrency.Euro }); TrainBookings.executeOnewayBookingWithLoyaltyCard({ loyaltyCard: loyaltyCard, origin: DeutscheBahnBookingParams.Location.Berlin, destination: DeutscheBahnBookingParams.Location.Munich, loyaltyCardNumber: '410162182750' }); TrainItinerary.expectLoyaltyCardDetailsArePresent(loyaltyCard); TrainItinerary.expectETicketIsDownloadable(); } ); });