add and adjust waitForElementVisible calls in nightwatch.

To try to solve Travis failures. See #228
This commit is contained in:
Mossroy 2017-05-22 21:12:23 +02:00
parent 228657a24e
commit 528e5e26ac

View File

@ -16,12 +16,13 @@ module.exports = {
.execute(function() {
window.setRemoteArchive('https://kiwix.github.io/kiwix-html5/tests/wikipedia_en_ray_charles_2015-06.zim');
})
.waitForElementVisible('#formTitleSearch', 20000)
.waitForElementVisible('#searchTitles', 20000)
.setValue('#prefix', "Ray")
.click('#searchTitles')
.waitForElementVisible('#titleList', 20000)
.useXpath()
.waitForElementVisible("//div[@id='titleList']/a[text()='Ray Charles']", 2000)
.waitForElementVisible("//div[@id='titleList']/a[text()='Ray Charles']", 20000)
.click("//div[@id='titleList']/a[text()='Ray Charles']")
.useCss()
.frame('articleContent')