mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 19:10:14 +08:00
Like tests text check
This commit is contained in:
@@ -36,12 +36,15 @@ const embedStreamCommands = {
|
||||
},
|
||||
likeComment() {
|
||||
return this
|
||||
.waitForElementVisible('@likeButton', 2000)
|
||||
.click('@likeButton');
|
||||
.waitForElementVisible('@likeButton')
|
||||
.waitForElementVisible('@likesCount')
|
||||
.click('@likeButton')
|
||||
.expect.element('@likeText').text.to.equal('Liked');
|
||||
},
|
||||
visitorLikeComment() {
|
||||
return this
|
||||
.waitForElementVisible('@likeButton', 2000)
|
||||
.waitForElementVisible('@likeButton')
|
||||
.waitForElementVisible('@likesCount')
|
||||
.click('@likeButton')
|
||||
.waitForElementVisible('@signInDialog', 2000);
|
||||
}
|
||||
@@ -76,6 +79,12 @@ export default {
|
||||
},
|
||||
likeButton: {
|
||||
selector: '.comment .coral-plugin-likes-container .coral-plugin-likes-button'
|
||||
},
|
||||
likeText: {
|
||||
selector: '.comment .coral-plugin-likes-container .coral-plugin-likes-button .coral-plugin-likes-button-text'
|
||||
},
|
||||
likesCount: {
|
||||
selector: '.comment .coral-plugin-likes-container .coral-plugin-likes-like-count'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user