Some work with spiderable
This commit is contained in:
parent
fc4155ea49
commit
8809a3e3c8
5 changed files with 42 additions and 9 deletions
|
|
@ -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();
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue