mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 21:13:12 +08:00
fixed e2e
This commit is contained in:
+1
-1
@@ -27,6 +27,6 @@ module.exports = {
|
||||
body: 'This is a test comment',
|
||||
},
|
||||
organizationName: 'Coral',
|
||||
organizationContactEmail: 'coral@coraltest.coral',
|
||||
organizationContactEmail: 'coral@coralproject.net',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -20,6 +20,8 @@ module.exports = {
|
||||
selector: '.talk-install-step-2',
|
||||
elements: {
|
||||
organizationNameInput: '.talk-install-step-2 #organizationName',
|
||||
organizationContactEmailInput:
|
||||
'.talk-install-step-2 #organizationContactEmail',
|
||||
saveButton: '.talk-install-step-2-save-button',
|
||||
},
|
||||
},
|
||||
|
||||
@@ -38,7 +38,12 @@ module.exports = {
|
||||
|
||||
step2
|
||||
.waitForElementVisible('@organizationNameInput')
|
||||
.waitForElementVisible('@organizationContactEmailInput', 5000)
|
||||
.setValue('@organizationNameInput', testData.organizationName)
|
||||
.setValue(
|
||||
'@organizationContactEmailInput',
|
||||
testData.organizationContactEmail
|
||||
)
|
||||
.waitForElementVisible('@saveButton')
|
||||
.click('@saveButton');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user