Some work with spiderable

This commit is contained in:
vjrj 2018-02-14 10:26:22 +01:00
parent fc4155ea49
commit 8809a3e3c8
5 changed files with 42 additions and 9 deletions

View file

@ -71,4 +71,13 @@ module.exports = function () {
}
callback();
});
this.Then(/^they are spiderable$/, (callback) => {
// Write code here that turns the phrase above into concrete actions
for (let i = 0; i < pages.length; i += 1) {
client.url(`${process.env.ROOT_URL}/${pages[i][0]}?_escaped_fragment_=`);
client.waitForText('#react-root', pages[i][1]);
}
callback();
});
};