Move Cypress directory and convert it to JavaScript (#2170)

This commit is contained in:
Louis Lam
2022-10-04 22:23:57 +08:00
committed by GitHub
parent 16b2cf0e89
commit afbc283423
18 changed files with 75 additions and 75 deletions

View File

@@ -0,0 +1,11 @@
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;