qe-fe-automation
Version:
FE test automation framework using cypress
30 lines (26 loc) • 908 B
text/typescript
import {
AmtrakBookingParams,
TrainBookings,
TrainCards,
TrainInterceptApis,
TrainItinerary,
TrainSearchModalUtil
} from '@train-lib/index';
describe.skip('Train: Amtrak Guest Rewards', () => {
it(
'C9171142: Should be able to book one way trip with Amtrak Guest Rewards',
{ tags: ['@amtrak', '@all_train_test'] },
() => {
TrainInterceptApis.interceptTrainApis();
TrainSearchModalUtil.createCompanyWithProviderName({});
TrainBookings.executeOnewayBookingWithLoyaltyCard({
loyaltyCard: TrainCards.AmtrakRewards,
origin: AmtrakBookingParams.Location.NewYork,
destination: AmtrakBookingParams.Location.Washington,
loyaltyCardNumber: '9036847979'
});
TrainItinerary.expectLoyaltyCardDetailsArePresent(TrainCards.AmtrakRewards);
cy.contains('We advise you to print your e-ticket(s) for this route.');
}
);
});