UNPKG

qe-fe-automation

Version:
34 lines (31 loc) 1.03 kB
import { TrainBookings, TrainCards, TrainInterceptApis, TrainItinerary, TrainSearchModalUtil, DeutscheBahnBookingParams, AgencyCurrency } from '@train-lib/index'; const loyaltyCard = TrainCards.BahnCard25; describe('Train: Deutsche Bahn BahnCard 25 1ère', () => { it( 'C9171142: User should be able add manually bahn card 25 1ère when booking one way trip', { tags: ['@db', '@all_train_test'] }, () => { TrainInterceptApis.interceptTrainApis(); TrainSearchModalUtil.createCompanyWithProviderName({ feeModelInfo: AgencyCurrency.Euro, companySuffix: '-auto' }); TrainBookings.executeOnewayBookingWithLoyaltyCard({ loyaltyCard: loyaltyCard, origin: DeutscheBahnBookingParams.Location.Berlin, destination: DeutscheBahnBookingParams.Location.Munich, loyaltyCardNumber: '410162182750' }); TrainItinerary.expectLoyaltyCardDetailsArePresent(loyaltyCard); TrainItinerary.expectETicketIsDownloadable(); } ); });