Ádding visitor tests

This commit is contained in:
Belen Curcio
2016-12-18 19:41:16 -03:00
parent 9950595245
commit 02b8bb61dd
2 changed files with 25 additions and 0 deletions
+6
View File
@@ -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();
}
};