add send test of e2e feature send coins

This commit is contained in:
mahula 2023-06-16 16:32:19 +02:00
parent f80e8540dd
commit 5a86c10169
4 changed files with 13 additions and 4 deletions

View File

@ -12,9 +12,11 @@ Feature: Send coins
Scenario: Send GDD to other user
Given the user is logged in as "bob@baumeister.de" "Aa12345_"
And the user navigates to page "/send"
When the user fills the send form with "raeuber@hotzenplotz.de" "120,50" "Some memo text"
When the user fills the send form with "raeuber@hotzenplotz.de" "120.50" "Some memo text"
And the user submits the send form
Then the transaction details are presented for confirmation
When the user submits the transaction by confirming
Then the transaction details are displayed on the transcations page
And the user navigates to page "/transactions"
Then the transaction details are displayed on the transactions page

View File

@ -1,6 +1,7 @@
/// <reference types='cypress' />
export class SendPage {
confirmationBox = '.transaction-confirm-send'
submitBtn = '.btn-gradido'
enterReceiverEmail(email: string) {

View File

@ -14,7 +14,7 @@ When(
And('the user submits the send form', () => {
sendPage.submit()
cy.get('.transaction-confirm-send').should('be.visible')
cy.get(sendPage.confirmationBox).should('be.visible')
})
@ -52,3 +52,9 @@ When('the user submits the transaction by confirming', () => {
cy.get('.align-items-center').contains('Räuber Hotzenplotz')
cy.get('.align-items-center').contains(' 120.50 GDD')
})
Then('the transaction details are displayed on the transactions page', () => {
cy.get('div.mt-3 > div > div.test-list-group-item').eq(0).contains('div.gdd-transaction-list-item-name', 'Räuber Hotzenplotz')
cy.get('div.mt-3 > div > div.test-list-group-item').eq(0).contains('[data-test="send-amount"]', ' 120.50 GDD')
})

View File

@ -25,7 +25,7 @@
<div class="small mb-2">
{{ $t('decay.types.send') }}
</div>
<div class="font-weight-bold text-140">{{ amount | GDD }}</div>
<div class="font-weight-bold text-140" data-test="send-amount">{{ amount | GDD }}</div>
<div v-if="linkId" class="small">
{{ $t('via_link') }}
<b-icon