mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
move transaction details data from step definition to scenario line
This commit is contained in:
parent
a612f2e305
commit
e763ac3d7a
@ -14,14 +14,14 @@ Feature: Send coins
|
||||
And the user navigates to page "/send"
|
||||
When the user fills the send form with "<receiverEmail>" "<amount>" "<memoText>"
|
||||
And the user submits the send form
|
||||
Then the transaction details are presented for confirmation
|
||||
Then the transaction details are presented for confirmation "<receiverEmail>" "<amount>" "<memoText>" "<senderBalance>" "<newSenderBalance>"
|
||||
When the user submits the transaction by confirming
|
||||
And the user navigates to page "/transactions"
|
||||
Then the "<receiverName>" and "<amount>" are displayed on the "transactions" page
|
||||
|
||||
Examples:
|
||||
| receiverName | receiverEmail | amount | memoText |
|
||||
| Räuber Hotzenplotz | raeuber@hotzenplotz.de | 120.50 | Some memo text |
|
||||
| receiverName | receiverEmail | amount | memoText | senderBalance | newSenderBalance |
|
||||
| Räuber Hotzenplotz | raeuber@hotzenplotz.de | 120.50 | Some memo text | 515.11 | 394.61 |
|
||||
|
||||
Scenario: Receive GDD from other user
|
||||
Given the user is logged in as "raeuber@hotzenplotz.de" "Aa12345_"
|
||||
|
||||
@ -18,13 +18,13 @@ And('the user submits the send form', () => {
|
||||
})
|
||||
|
||||
|
||||
Then('the transaction details are presented for confirmation', () => {
|
||||
cy.get('.transaction-confirm-send').contains('raeuber@hotzenplotz.de')
|
||||
cy.get('.transaction-confirm-send').contains('+ 120.50 GDD')
|
||||
cy.get('.transaction-confirm-send').contains('Some memo text')
|
||||
cy.get('.transaction-confirm-send').contains('+ 515.11 GDD')
|
||||
cy.get('.transaction-confirm-send').contains('− 120.50 GDD')
|
||||
cy.get('.transaction-confirm-send').contains('+ 394.61 GDD')
|
||||
Then('the transaction details are presented for confirmation {string} {string} {string} {string} {string}', (receiverEmail: string, sendAmount: string, memoText: string, senderBalance: string, newSenderBalance: string) => {
|
||||
cy.get('.transaction-confirm-send').contains(receiverEmail)
|
||||
cy.get('.transaction-confirm-send').contains(`+ ${sendAmount} GDD`)
|
||||
cy.get('.transaction-confirm-send').contains(memoText)
|
||||
cy.get('.transaction-confirm-send').contains(`+ ${senderBalance} GDD`)
|
||||
cy.get('.transaction-confirm-send').contains(`− ${sendAmount} GDD`)
|
||||
cy.get('.transaction-confirm-send').contains(`+ ${newSenderBalance} GDD`)
|
||||
})
|
||||
|
||||
When('the user submits the transaction by confirming', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user