当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript UserSteps.login方法代码示例

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

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

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

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

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

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


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