mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-14 01:06:03 -04:00
added cypress framework and tests for setup page
This commit is contained in:
parent
9a8b484ee8
commit
31c388a6e3
15 changed files with 98 additions and 9 deletions
15
cypress/support/tasks/setup-task.ts
Normal file
15
cypress/support/tasks/setup-task.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { SetupPage } from "../pages/setup-page";
|
||||
|
||||
export class SetupTask {
|
||||
fillAndSubmitSetupForm(
|
||||
username: string,
|
||||
password: string,
|
||||
passwordRepeat: string
|
||||
) {
|
||||
cy.get(SetupPage.usernameInput).type(username);
|
||||
cy.get(SetupPage.passWordInput).type(password);
|
||||
cy.get(SetupPage.passwordRepeatInput).type(passwordRepeat);
|
||||
|
||||
cy.get(SetupPage.submitSetupForm).click();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue