本文整理汇总了TypeScript中integration-test/tests/citizen/home/steps/user.UserSteps类的典型用法代码示例。如果您正苦于以下问题:TypeScript UserSteps类的具体用法?TypeScript UserSteps怎么用?TypeScript UserSteps使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了UserSteps类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: async
Scenario('I can prepare a claim with different interest rate and date @citizen', async (I: I) => {
const email: string = await I.createCitizenUser()
userSteps.login(email)
claimSteps.completeEligibility()
claimSteps.optIntoNewFeatures()
userSteps.selectClaimAmount()
claimSteps.enterClaimAmount(10, 20.50, 50)
I.see('£80.50')
claimSteps.claimantTotalAmountPageRead()
I.see('Do you want to claim interest?')
interestSteps.enterSpecificInterestRateAndDate(2, '1990-01-01')
I.see('Total amount you’re claiming')
interestSteps.skipClaimantInterestTotalPage()
I.see('Prepare your claim')
})
示例2: async
async (I: I) => {
const testData = await EndToEndTestData.prepareData(I, PartyType.INDIVIDUAL, PartyType.INDIVIDUAL)
const claimantResponseTestData = new ClaimantResponseTestData()
// as defendant
defendantResponseSteps.disputeAllClaim(testData, claimantResponseTestData)
I.see(testData.claimRef)
// check dashboard
I.click('My account')
I.see('You’ve rejected the claim. You need to tell us more about the claim.')
// check status
I.click(testData.claimRef)
I.see(testData.claimRef)
I.see('Claim status')
I.see('You’ve rejected the claim and said you don’t want to use mediation to solve it.')
I.click('Sign out')
// as claimant
userSteps.login(testData.claimantEmail)
claimantResponseSteps.viewClaimFromDashboard(testData.claimRef)
// check dashboard
I.click('My account')
I.see(testData.claimRef)
I.see(`${testData.defendantName} has rejected your claim.`)
// check status
I.click(testData.claimRef)
I.see(testData.claimRef)
I.see('Claim status')
I.see('The defendant has rejected your claim')
I.see(`They said they dispute your claim.`)
I.click('Sign out')
})
示例3: async
Scenario('I create a claim draft using testing support and submit it @citizen', async (I: I) => {
const email: string = await I.createCitizenUser()
userSteps.login(email)
testingSupportSteps.createClaimDraft()
claimantCheckAndSendPage.checkFactsTrueAndSubmit()
paymentSteps.payWithWorkingCard()
I.waitForText('Claim submitted')
})
示例4: async
Scenario('I can make an offer as a defendant to a claimant and have the claimant reject it @citizen', async (I: I) => {
const claimantEmail: string = await I.createCitizenUser()
const defendantEmail: string = await I.createCitizenUser()
const claimRef: string = await I.createClaim(createClaimData(PartyType.INDIVIDUAL, PartyType.INDIVIDUAL), claimantEmail)
I.linkDefendantToClaim(claimRef, claimantEmail, defendantEmail)
I.respondToClaim(claimRef, claimantEmail, createResponseData(PartyType.INDIVIDUAL), defendantEmail)
userSteps.login(defendantEmail)
offerSteps.makeOfferFromDashboard(claimRef)
I.see('We’ve sent your offer to ' + createClaimant(PartyType.INDIVIDUAL).name)
I.click('Sign out')
userSteps.login(claimantEmail)
offerSteps.rejectOfferFromDashboard(claimRef)
I.click('Sign out')
userSteps.login(defendantEmail)
offerSteps.viewClaimFromDashboard(claimRef)
I.see('The claimant has rejected your offer to settle the claim.')
})
示例5: async
Scenario('Request judgment as an individual with no defendant email and pay by instalments @citizen @quick', async (I: I) => {
const email: string = await I.createCitizenUser()
const claimantType: PartyType = PartyType.INDIVIDUAL
const defendantType: PartyType = PartyType.INDIVIDUAL
const hasDefendantEmail = false
const claimData = createClaimData(claimantType, defendantType, hasDefendantEmail, InterestType.NO_INTEREST)
const claimRef: string = await I.createClaim(claimData, email)
userSteps.login(email)
ccjSteps.requestCCJ(claimRef, defendantType)
ccjSteps.ccjDefendantToPayByInstalments()
ccjSteps.checkCCJFactsAreTrueAndSubmit(claimantType, claimData.defendants[0], defendantType)
I.see('County Court Judgment requested', 'h1.bold-large')
})
示例6: Scenario
Scenario('I can as a claimant accept the defendants full admission by set date with CCJ and a previous payment made @admissions @citizen', async (I: I) => {
const testData = await EndToEndTestData.prepareData(I, PartyType.INDIVIDUAL, PartyType.INDIVIDUAL)
testData.paymentOption = PaymentOption.BY_SET_DATE
// as defendant
helperSteps.finishResponseWithFullAdmission(testData)
I.click('Sign out')
// as claimant
userSteps.login(testData.claimantEmail)
claimantResponseSteps.acceptCcjFromDashboardWhenDefendantHasPaidSomeAndAcceptPaymentMethod(testData, 'View and respond to the offer')
I.see('County Court Judgment requested')
confirmationPage.clickGoToYourAccount()
I.see(testData.claimRef)
I.see('County Court Judgment')
})
示例7: async
Scenario('I can see the Claim amount page calculates properly and shows the correct fees table @citizen', async (I: I) => {
const email: string = await I.createCitizenUser()
userSteps.login(email)
claimSteps.completeEligibility()
claimSteps.optIntoNewFeatures()
userSteps.selectClaimAmount()
I.see('Claim amount')
claimantClaimAmountPage.enterAmount(11, 20.50, 32.25)
I.see('£63.75')
I.click('Save and continue')
I.see('Do you want to claim interest?')
interestSteps.skipClaimInterest()
I.see('Total amount you’re claiming')
I.click('summary')
I.see('Claim amount Claim fee Hearing fee')
I.see('£0.01 to £300 £25 £25')
I.see('£300.01 to £500 £35 £55')
I.see('£500.01 to £1,000 £60 £80')
I.see('£1,000.01 to £1,500 £70 £115')
I.see('£1,500.01 to £3,000 £105 £170')
I.see('£3,000.01 to £5,000 £185 £335')
I.see('£5,000.01 to £10,000 £410 £335')
})
示例8: Scenario
Scenario('I can as a claimant accept and suggest an alternative payment intention with set date @citizen @admissions @business', async (I: I) => {
const testData = await EndToEndTestData.prepareData(I, PartyType.COMPANY, PartyType.INDIVIDUAL)
testData.defenceType = DefenceType.PART_ADMISSION_NONE_PAID
testData.paymentOption = PaymentOption.BY_SET_DATE
// as defendant
helperSteps.finishResponse(testData, false)
I.click('Sign out')
// as claimant
userSteps.login(testData.claimantEmail)
claimantResponseSteps.viewClaimFromDashboard(testData.claimRef)
I.click('View and respond')
claimantResponseSteps.acceptPartAdmitFromBusinessWithAlternativePaymentIntention()
checkAndSendPage.verifyFactsForPartAdmitFromBusiness()
checkAndSendPage.checkFactsTrueAndSubmit()
I.see(testData.claimRef)
I.see('You’ve proposed a different repayment plan')
I.click('My account')
I.see(testData.claimRef)
I.see('You need to send the defendant’s financial details to the court.')
})
示例9: Scenario
Scenario('I can as a claimant accept the defendants part admission by immediately with settlement agreement and accepting defendants payment method @citizen @admissions', async (I: I) => {
const testData = await EndToEndTestData.prepareData(I, PartyType.INDIVIDUAL, PartyType.INDIVIDUAL)
testData.paymentOption = PaymentOption.IMMEDIATELY
testData.defenceType = DefenceType.PART_ADMISSION
testData.defendantClaimsToHavePaidInFull = false
const claimantResponseTestData = new ClaimantResponseTestData()
claimantResponseTestData.isExpectingToSeeHowTheyWantToPayPage = true
// as defendant
helperSteps.finishResponse(testData)
I.click('Sign out')
// as claimant
userSteps.login(testData.claimantEmail)
claimantResponseSteps.acceptSettlementFromDashboardWhenAcceptPaymentMethod(testData, claimantResponseTestData, 'View and respond')
checkAndSendPage.verifyFactsForSettlement()
checkAndSendPage.checkFactsTrueAndSubmit()
I.see('You’ve signed a settlement agreement')
confirmationPage.clickGoToYourAccount()
I.see(testData.claimRef)
I.see('You’ve signed a settlement agreement.')
})