本文整理汇总了TypeScript中integration-test/tests/citizen/home/steps/user.UserSteps.login方法的典型用法代码示例。如果您正苦于以下问题:TypeScript UserSteps.login方法的具体用法?TypeScript UserSteps.login怎么用?TypeScript UserSteps.login使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类integration-test/tests/citizen/home/steps/user.UserSteps
的用法示例。
在下文中一共展示了UserSteps.login方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: 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')
})
示例2: Scenario
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')
})
示例3: Scenario
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.')
})
示例4: Scenario
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')
})
示例5: 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')
})
示例6: Scenario
Scenario('I can prepare a claim with a manually entered interest amount and a daily amount added @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.enterBreakdownInterestAmountAndDailyAmount()
I.see('Total amount you’re claiming')
interestSteps.skipClaimantInterestTotalPage()
I.see('Prepare your claim')
})