mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
34 lines
605 B
TypeScript
34 lines
605 B
TypeScript
/// <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()
|
|
}
|
|
}
|