本文整理汇总了TypeScript中integration-test/tests/citizen/claimantResponse/steps/defendant.DefendantResponseSteps.disputeClaimAsAlreadyPaid方法的典型用法代码示例。如果您正苦于以下问题:TypeScript DefendantResponseSteps.disputeClaimAsAlreadyPaid方法的具体用法?TypeScript DefendantResponseSteps.disputeClaimAsAlreadyPaid怎么用?TypeScript DefendantResponseSteps.disputeClaimAsAlreadyPaid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类integration-test/tests/citizen/claimantResponse/steps/defendant.DefendantResponseSteps
的用法示例。
在下文中一共展示了DefendantResponseSteps.disputeClaimAsAlreadyPaid方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: async
async (I: I) => {
const testData = await EndToEndTestData.prepareData(I, PartyType.INDIVIDUAL, PartyType.INDIVIDUAL)
const claimantResponseTestData = new ClaimantResponseTestData()
claimantResponseTestData.pageSpecificValues.howMuchHaveYouPaidPageEnterAmountPaidWithDateAndExplanation = {
paidAmount: 50,
date: '2018-01-01',
explanation: 'My explanation...'
}
// as defendant
defendantResponseSteps.disputeClaimAsAlreadyPaid(testData, claimantResponseTestData, false)
I.see(testData.claimRef)
I.see(`You told us you’ve paid the £${Number(50).toLocaleString()} you believe you owe. We’ve sent ${testData.claimantName} this response.`)
// check dashboard
I.click('My account')
I.see(`We’ve emailed ${testData.claimantName} telling them when and how you said you paid the claim.`)
// check status
I.click(testData.claimRef)
I.see(testData.claimRef)
I.see('Claim status')
I.see(`We’ve emailed ${testData.claimantName} telling them when and how you said you paid the claim.`)
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(`Respond to the defendant.`) // TODO IS THIS WRONG? should be defendants name
// check status
I.click(testData.claimRef)
I.see(testData.claimRef)
I.see('Claim status')
I.see('Respond to the defendant')
I.see(`${testData.defendantName} says they paid you £50 on 1 January 2018.`)
// TODO: accept or reject the response - implemented yet?
I.click('Sign out')
})