mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 05:46:15 +08:00
Unify names
This commit is contained in:
@@ -1,47 +1,47 @@
|
||||
module.exports = {
|
||||
'@tags': ['install'],
|
||||
'User goes to install': (client) => {
|
||||
const installPage = client.page.installPage();
|
||||
const install = client.page.install();
|
||||
|
||||
installPage
|
||||
install
|
||||
.navigate()
|
||||
.ready();
|
||||
|
||||
},
|
||||
'User clicks get started button': (client) => {
|
||||
const installPage = client.page.installPage();
|
||||
const install = client.page.install();
|
||||
|
||||
installPage
|
||||
install
|
||||
.waitForElementVisible('@getStartedButton')
|
||||
.click('@getStartedButton');
|
||||
},
|
||||
'User should see step 2 - Add Organization Name': (client) => {
|
||||
const installPage = client.page.installPage();
|
||||
const install = client.page.install();
|
||||
|
||||
installPage
|
||||
install
|
||||
.waitForElementVisible('@step2');
|
||||
},
|
||||
'User fills step 2': (client) => {
|
||||
const installPage = client.page.installPage();
|
||||
const install = client.page.install();
|
||||
const {testData} = client.globals;
|
||||
|
||||
installPage
|
||||
install
|
||||
.waitForElementVisible('@step2organizationNameInput')
|
||||
.setValue('@step2organizationNameInput', testData.organizationName)
|
||||
.waitForElementVisible('@step2saveButton')
|
||||
.click('@step2saveButton');
|
||||
},
|
||||
'User should see step 3 - Create your account': (client) => {
|
||||
const installPage = client.page.installPage();
|
||||
const install = client.page.install();
|
||||
|
||||
installPage
|
||||
install
|
||||
.waitForElementVisible('@step3');
|
||||
},
|
||||
'User fills step 3': (client) => {
|
||||
const installPage = client.page.installPage();
|
||||
const install = client.page.install();
|
||||
const {testData: {admin}} = client.globals;
|
||||
|
||||
installPage
|
||||
install
|
||||
.setValue('@step3EmailInput', admin.email)
|
||||
.setValue('@step3UsernameInput', admin.username)
|
||||
.setValue('@step3PasswordInput', admin.password)
|
||||
@@ -50,21 +50,21 @@ module.exports = {
|
||||
.click('@step3saveButton');
|
||||
},
|
||||
'User should see step 4 - Domain Whitelist': (client) => {
|
||||
const installPage = client.page.installPage();
|
||||
const install = client.page.install();
|
||||
|
||||
installPage
|
||||
install
|
||||
.waitForElementVisible('@step4');
|
||||
},
|
||||
'User fills step 4': (client) => {
|
||||
const installPage = client.page.installPage();
|
||||
const install = client.page.install();
|
||||
|
||||
installPage
|
||||
install
|
||||
.waitForElementVisible('@step4DomainInput')
|
||||
.setValue('@step4DomainInput', client.launchUrl);
|
||||
|
||||
client.keys(client.Keys.ENTER);
|
||||
|
||||
installPage
|
||||
install
|
||||
.waitForElementVisible('@step4saveButton')
|
||||
.click('@step4saveButton');
|
||||
},
|
||||
@@ -1,7 +1,7 @@
|
||||
module.exports = {
|
||||
'@tags': ['admin', 'login'],
|
||||
'Admin logs in': (client) => {
|
||||
const adminPage = client.page.adminPage();
|
||||
const adminPage = client.page.admin();
|
||||
const {testData: {admin}} = client.globals;
|
||||
|
||||
adminPage
|
||||
Reference in New Issue
Block a user