mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 00:50:07 +08:00
Ádding visitor tests
This commit is contained in:
@@ -38,6 +38,12 @@ const embedStreamCommands = {
|
||||
return this
|
||||
.waitForElementVisible('@likeButton', 2000)
|
||||
.click('@likeButton');
|
||||
},
|
||||
visitorLikeComment() {
|
||||
return this
|
||||
.waitForElementVisible('@likeButton', 2000)
|
||||
.click('@likeButton')
|
||||
.waitForElementVisible('@signInDialog', 2000);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
'@tags': ['like', 'comments', 'visitor'],
|
||||
before: client => {
|
||||
const embedStreamPage = client.page.embedStreamPage();
|
||||
|
||||
embedStreamPage
|
||||
.navigate()
|
||||
.ready();
|
||||
},
|
||||
'Visitor tries to like a comment': client => {
|
||||
const embedStreamPage = client.page.embedStreamPage();
|
||||
|
||||
embedStreamPage
|
||||
.visitorLikeComment();
|
||||
},
|
||||
after: client => {
|
||||
client.end();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user