mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Renaming
This commit is contained in:
@@ -111,52 +111,52 @@ module.exports = {
|
||||
selector: '#coralStream #logout'
|
||||
},
|
||||
commentBox: {
|
||||
selector: '.coral-plugin-commentbox-textarea'
|
||||
selector: '.talk-plugin-commentbox-textarea'
|
||||
},
|
||||
postButton: {
|
||||
selector: '#commentBox .coral-plugin-commentbox-button'
|
||||
selector: '#commentBox .talk-plugin-commentbox-button'
|
||||
},
|
||||
likeButton: {
|
||||
selector: '.embed__stream .comment .coral-plugin-likes-container .coral-plugin-likes-button'
|
||||
selector: '.embed__stream .comment .talk-plugin-likes-container .talk-plugin-likes-button'
|
||||
},
|
||||
likeText: {
|
||||
selector: '.embed__stream .comment .coral-plugin-likes-container .coral-plugin-likes-button .coral-plugin-likes-button-text'
|
||||
selector: '.embed__stream .comment .talk-plugin-likes-container .talk-plugin-likes-button .talk-plugin-likes-button-text'
|
||||
},
|
||||
likesCount: {
|
||||
selector: '.embed__stream .comment .coral-plugin-likes-container .coral-plugin-likes-button .coral-plugin-likes-like-count'
|
||||
selector: '.embed__stream .comment .talk-plugin-likes-container .talk-plugin-likes-button .talk-plugin-likes-like-count'
|
||||
},
|
||||
flagButton: {
|
||||
selector: '.embed__stream .comment .coral-plugin-flags-container .coral-plugin-flags-button'
|
||||
selector: '.embed__stream .comment .talk-plugin-flags-container .talk-plugin-flags-button'
|
||||
},
|
||||
flagPopUp: {
|
||||
selector: '.embed__stream .comment .coral-plugin-flags-popup'
|
||||
selector: '.embed__stream .comment .talk-plugin-flags-popup'
|
||||
},
|
||||
flagCommentOption: {
|
||||
selector: '.embed__stream .comment .coral-plugin-flags-popup .coral-plugin-flags-popup-radio-label[for="COMMENTS"]'
|
||||
selector: '.embed__stream .comment .talk-plugin-flags-popup .talk-plugin-flags-popup-radio-label[for="COMMENTS"]'
|
||||
},
|
||||
flagUsernameOption: {
|
||||
selector: '.embed__stream .comment .coral-plugin-flags-popup .coral-plugin-flags-popup-radio-label[for="USERS"]'
|
||||
selector: '.embed__stream .comment .talk-plugin-flags-popup .talk-plugin-flags-popup-radio-label[for="USERS"]'
|
||||
},
|
||||
flagOtherOption: {
|
||||
selector: '.embed__stream .comment .coral-plugin-flags-popup .coral-plugin-flags-popup-radio-label[for="other"]'
|
||||
selector: '.embed__stream .comment .talk-plugin-flags-popup .talk-plugin-flags-popup-radio-label[for="other"]'
|
||||
},
|
||||
flagHeaderMessage: {
|
||||
selector: '.embed__stream .comment .coral-plugin-flags-popup .coral-plugin-flags-popup-header'
|
||||
selector: '.embed__stream .comment .talk-plugin-flags-popup .talk-plugin-flags-popup-header'
|
||||
},
|
||||
flagButtonText: {
|
||||
selector: '.embed__stream .comment .coral-plugin-flags-button-text'
|
||||
selector: '.embed__stream .comment .talk-plugin-flags-button-text'
|
||||
},
|
||||
flagDoneButton: {
|
||||
selector: '.embed__stream .comment .coral-plugin-flags-popup .coral-plugin-flags-popup-button'
|
||||
selector: '.embed__stream .comment .talk-plugin-flags-popup .talk-plugin-flags-popup-button'
|
||||
},
|
||||
permalinkButton: {
|
||||
selector: '.embed__stream .comment .coral-plugin-permalinks-button'
|
||||
selector: '.embed__stream .comment .talk-plugin-permalinks-button'
|
||||
},
|
||||
permalinkPopUp: {
|
||||
selector: '.embed__stream .comment .coral-plugin-permalinks-popover.active'
|
||||
selector: '.embed__stream .comment .talk-plugin-permalinks-popover.active'
|
||||
},
|
||||
permalinkInput: {
|
||||
selector: '.embed__stream .comment .coral-plugin-permalinks-popover.active input'
|
||||
selector: '.embed__stream .comment .talk-plugin-permalinks-popover.active input'
|
||||
},
|
||||
registerButton: {
|
||||
selector: '#signInDialog #coralRegister'
|
||||
|
||||
@@ -43,15 +43,15 @@ module.exports = {
|
||||
.click('#coralSignUpButton')
|
||||
.waitForElementVisible('#coralLogInButton', 10000)
|
||||
.click('#coralLogInButton')
|
||||
.waitForElementVisible('.coral-plugin-commentbox-button', 4000)
|
||||
.waitForElementVisible('.talk-plugin-commentbox-button', 4000)
|
||||
|
||||
// Post a comment
|
||||
.setValue('.coral-plugin-commentbox-textarea', mockComment)
|
||||
.click('.coral-plugin-commentbox-button')
|
||||
.waitForElementVisible('.embed__stream .coral-plugin-commentcontent-text', 1000)
|
||||
.setValue('.talk-plugin-commentbox-textarea', mockComment)
|
||||
.click('.talk-plugin-commentbox-button')
|
||||
.waitForElementVisible('.embed__stream .talk-plugin-commentcontent-text', 1000)
|
||||
|
||||
// Verify that it appears
|
||||
.assert.containsText('.embed__stream .coral-plugin-commentcontent-text', mockComment);
|
||||
.assert.containsText('.embed__stream .talk-plugin-commentcontent-text', mockComment);
|
||||
done();
|
||||
})
|
||||
.catch((err) => {
|
||||
@@ -70,9 +70,9 @@ module.exports = {
|
||||
.frame('coralStreamEmbed_iframe');
|
||||
|
||||
// Post a comment
|
||||
client.waitForElementVisible('.coral-plugin-commentbox-button', 2000)
|
||||
.setValue('.coral-plugin-commentbox-textarea', mockComment)
|
||||
.click('.coral-plugin-commentbox-button');
|
||||
client.waitForElementVisible('.talk-plugin-commentbox-button', 2000)
|
||||
.setValue('.talk-plugin-commentbox-textarea', mockComment)
|
||||
.click('.talk-plugin-commentbox-button');
|
||||
done();
|
||||
})
|
||||
.catch((err) => {
|
||||
@@ -92,17 +92,17 @@ module.exports = {
|
||||
.frame('coralStreamEmbed_iframe');
|
||||
|
||||
// Post a comment
|
||||
client.waitForElementVisible('.coral-plugin-commentbox-button', 2000)
|
||||
.setValue('.coral-plugin-commentbox-textarea', mockComment)
|
||||
.click('.coral-plugin-commentbox-button')
|
||||
client.waitForElementVisible('.talk-plugin-commentbox-button', 2000)
|
||||
.setValue('.talk-plugin-commentbox-textarea', mockComment)
|
||||
.click('.talk-plugin-commentbox-button')
|
||||
|
||||
// Post a reply
|
||||
|
||||
.waitForElementVisible('.embed__stream .coral-plugin-replies-reply-button', 5000)
|
||||
.click('.embed__stream .coral-plugin-replies-reply-button')
|
||||
.waitForElementVisible('.embed__stream .talk-plugin-replies-reply-button', 5000)
|
||||
.click('.embed__stream .talk-plugin-replies-reply-button')
|
||||
.waitForElementVisible('#replyText')
|
||||
.setValue('#replyText', mockReply)
|
||||
.click('.embed__stream .coral-plugin-replies-textarea .coral-plugin-commentbox-button')
|
||||
.click('.embed__stream .talk-plugin-replies-textarea .talk-plugin-commentbox-button')
|
||||
.waitForElementVisible('.embed__stream .reply', 20000)
|
||||
|
||||
// Verify that it appears
|
||||
@@ -143,11 +143,11 @@ module.exports = {
|
||||
// .frame('coralStreamEmbed_iframe');
|
||||
//
|
||||
// // Post a reply
|
||||
// client.waitForElementVisible('.coral-plugin-replies-reply-button', 5000)
|
||||
// .click('.coral-plugin-replies-reply-button')
|
||||
// client.waitForElementVisible('.talk-plugin-replies-reply-button', 5000)
|
||||
// .click('.talk-plugin-replies-reply-button')
|
||||
// .waitForElementVisible('#replyText')
|
||||
// .setValue('#replyText', mockReply)
|
||||
// .click('.coral-plugin-replies-textarea button')
|
||||
// .click('.talk-plugin-replies-textarea button')
|
||||
// .waitForElementVisible('#coral-notif', 1000)
|
||||
//
|
||||
// // Verify that it appears
|
||||
@@ -166,8 +166,8 @@ module.exports = {
|
||||
.frame('coralStreamEmbed_iframe');
|
||||
|
||||
// Verify that comment count is correct
|
||||
client.waitForElementVisible('.coral-plugin-comment-count-text', 2000)
|
||||
.assert.containsText('.coral-plugin-comment-count-text', '5 Comments');
|
||||
client.waitForElementVisible('.talk-plugin-comment-count-text', 2000)
|
||||
.assert.containsText('.talk-plugin-comment-count-text', '5 Comments');
|
||||
done();
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user