[WIP] signupPage e2e test scenario

This commit is contained in:
Andrew Revinsky (DART)
2016-09-22 21:13:03 +03:00
parent 334df47112
commit 2db8e09570

View File

@@ -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]'
}
}
};