diff --git a/e2e-tests/cypress/e2e/SendCoins.feature b/e2e-tests/cypress/e2e/SendCoins.feature index 55ba2d02e..e35317dc6 100644 --- a/e2e-tests/cypress/e2e/SendCoins.feature +++ b/e2e-tests/cypress/e2e/SendCoins.feature @@ -14,14 +14,14 @@ Feature: Send coins And the user navigates to page "/send" When the user fills the send form with "" "" "" And the user submits the send form - Then the transaction details are presented for confirmation + Then the transaction details are presented for confirmation "" "" "" "" "" When the user submits the transaction by confirming And the user navigates to page "/transactions" Then the "" and "" 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_" diff --git a/e2e-tests/cypress/support/step_definitions/send_coin_steps.ts b/e2e-tests/cypress/support/step_definitions/send_coin_steps.ts index 60958fb2a..8a0e054b6 100644 --- a/e2e-tests/cypress/support/step_definitions/send_coin_steps.ts +++ b/e2e-tests/cypress/support/step_definitions/send_coin_steps.ts @@ -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', () => {