mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
add send page obpejt for e2e tests
This commit is contained in:
parent
9ff4237c0d
commit
a837ce0a0d
33
e2e-tests/cypress/e2e/models/SendPage.ts
Normal file
33
e2e-tests/cypress/e2e/models/SendPage.ts
Normal 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()
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user