mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-01 04:00:40 +00:00
12 lines
444 B
JavaScript
12 lines
444 B
JavaScript
|
const setupPage = require("../pages/setup-page");
|
||
|
|
||
|
class SetupTask {
|
||
|
fillAndSubmitSetupForm(username, password, passwordRepeat) {
|
||
|
cy.get(setupPage.SetupPage.usernameInput).type(username);
|
||
|
cy.get(setupPage.SetupPage.passWordInput).type(password);
|
||
|
cy.get(setupPage.SetupPage.passwordRepeatInput).type(passwordRepeat);
|
||
|
cy.get(setupPage.SetupPage.submitSetupForm).click();
|
||
|
}
|
||
|
}
|
||
|
exports.SetupTask = SetupTask;
|