mirror of
https://github.com/IT4Change/boilerplate-e2e-cypress-cucumber.git
synced 2025-12-12 20:55:48 +00:00
14 lines
366 B
TypeScript
14 lines
366 B
TypeScript
class LoginPage {
|
|
usernameInput: string = '#username'
|
|
passwordInput: string = '#password'
|
|
submitBtn: string = 'button[type=submit]'
|
|
|
|
submitLogin(username: string, password: string) {
|
|
cy.get(this.usernameInput).type(username)
|
|
cy.get(this.passwordInput).type(password)
|
|
cy.get(this.submitBtn).click()
|
|
}
|
|
}
|
|
|
|
export const loginPage = new LoginPage()
|