add send page obpejt for e2e tests

This commit is contained in:
mahula 2023-06-16 16:29:25 +02:00
parent 9ff4237c0d
commit a837ce0a0d

View File

@ -0,0 +1,33 @@
/// <reference types='cypress' />
export class SendPage {
submitBtn = '.btn-gradido'
enterReceiverEmail(email: string) {
cy.get('[data-test="input-identifier"]').find('input')
.clear()
.type(email)
return this
}
enterAmount(amount: string) {
cy.get('[data-test="input-amount"]')
.find('input')
.clear()
.type(amount)
return this
}
enterMemoText(text: string) {
cy.get('[data-test="input-textarea"]')
.find('textarea')
.clear()
.type(text)
return this
}
submit() {
cy.get(this.submitBtn)
.click()
}
}