mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
add send test of e2e feature send coins
This commit is contained in:
parent
f80e8540dd
commit
5a86c10169
@ -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
|
||||
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
/// <reference types='cypress' />
|
||||
|
||||
export class SendPage {
|
||||
confirmationBox = '.transaction-confirm-send'
|
||||
submitBtn = '.btn-gradido'
|
||||
|
||||
enterReceiverEmail(email: string) {
|
||||
|
||||
@ -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')
|
||||
})
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user