• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript user.UserSteps类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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')
})
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:16,代码来源:enterDetails_test.ts


示例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')
    })
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:33,代码来源:reject_test.ts


示例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')
})
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:10,代码来源:testingSupport_test.ts


示例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.')
})
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:22,代码来源:offers_test.ts


示例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')
})
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:14,代码来源:ccj_test.ts


示例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')
 })
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:14,代码来源:full_admission_test.ts


示例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')
})
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:24,代码来源:fees_test.ts


示例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.')
 })
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:20,代码来源:part_admission_defendant_is_business_test.ts


示例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.')
  })
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:21,代码来源:part_admission_test.ts



注:本文中的integration-test/tests/citizen/home/steps/user.UserSteps类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap