qe-fe-automation
Version:
FE test automation framework using cypress
30 lines (27 loc) • 846 B
text/typescript
import { User_Type } from '@support-onboard/index';
import {
TrainSearchModalUtil,
TrainTripType,
TrainBookings,
AmtrakBookingParams,
CompanyDiscount
} from '@train-lib/index';
describe('Train: Amtrak oneway Corporate And Government Fare booking', () => {
it(
'C473862: Should be able to book a one-way Corporate And Government Fare booking',
{ tags: ['@amtrak', '@all_train_test'] },
() => {
TrainSearchModalUtil.createCompanyWithProviderName({
users: [User_Type.ADMIN]
});
CompanyDiscount.AddCompanyCorporateDiscount();
const tripType = TrainTripType.ONEWAY;
TrainBookings.createBooking({
origin: AmtrakBookingParams.Location.NewYork,
destination: AmtrakBookingParams.Location.Washington,
tripType,
corporateDiscount: true
});
}
);
});