Use sections for install e2e

This commit is contained in:
Chi Vinh Le
2017-10-17 16:58:50 +07:00
parent 7ffc7a76f5
commit 8cf04c5c66
4 changed files with 71 additions and 43 deletions
+35 -15
View File
@@ -8,19 +8,39 @@ module.exports = {
.waitForElementVisible('body');
}
}],
elements: {
'getStartedButton': '.talk-install-get-started-button',
'step2': '.talk-install-step-2',
'step2organizationNameInput': '.talk-install-step-2 #organizationName',
'step2saveButton': '.talk-install-step-2-save-button',
'step3': '.talk-install-step-3',
'step3EmailInput': '.talk-install-step-3 #email',
'step3UsernameInput': '.talk-install-step-3 #username',
'step3PasswordInput': '.talk-install-step-3 #password',
'step3ConfirmPasswordInput': '.talk-install-step-3 #confirmPassword',
'step3saveButton': '.talk-install-step-3-save-button',
'step4': '.talk-install-step-4',
'step4DomainInput': '.talk-install-step-4-permited-domains-input input',
'step4saveButton': '.talk-install-step-4-save-button',
}
sections: {
step1: {
selector: '.talk-install-step-1',
elements: {
getStartedButton: '.talk-install-get-started-button',
},
},
step2: {
selector: '.talk-install-step-2',
elements: {
organizationNameInput: '.talk-install-step-2 #organizationName',
saveButton: '.talk-install-step-2-save-button',
},
},
step3: {
selector: '.talk-install-step-3',
elements: {
emailInput: '.talk-install-step-3 #email',
usernameInput: '.talk-install-step-3 #username',
passwordInput: '.talk-install-step-3 #password',
confirmPasswordInput: '.talk-install-step-3 #confirmPassword',
saveButton: '.talk-install-step-3-save-button',
},
},
step4: {
selector: '.talk-install-step-4',
elements: {
domainInput: '.talk-install-step-4-permited-domains-input input',
saveButton: '.talk-install-step-4-save-button',
},
},
step5: {
selector: '.talk-install-step-5',
},
},
};