diff --git a/js-frontend/tests/e2e-pages/signupPage.js b/js-frontend/tests/e2e-pages/signupPage.js new file mode 100644 index 0000000..641d999 --- /dev/null +++ b/js-frontend/tests/e2e-pages/signupPage.js @@ -0,0 +1,29 @@ +const signupCommands = { + signup(email, pass, fName, lName, ssn) { + return this + .waitForElementVisible('@emailInput') + .setValue('@emailInput', email) + .setValue('@passInput', pass) + .waitForElementVisible('@loginButton') + .click('@loginButton') + } +}; + +export default { + url: 'http://localhost:8080/#/register', + commands: [loginCommands], + elements: { + emailInput: { + selector: 'input[type=text][label=Email]' + }, + emailInput: { + selector: 'input[type=text][label="Last name"]' + }, + passInput: { + selector: 'input[name=password]' + }, + loginButton: { + selector: 'button[type=submit]' + } + } +}; \ No newline at end of file