added cypress framework and tests for setup page

This commit is contained in:
tamasmagyar
2022-06-16 08:06:34 +02:00
parent 9a8b484ee8
commit 31c388a6e3
15 changed files with 98 additions and 9 deletions

View 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();
}
}