本文整理匯總了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')
})