-
-
Notifications
You must be signed in to change notification settings - Fork 752
Closed
Labels
Description
i wanted to increase the wait timeout at the config level, so that i don't have to specify wait period at the test case level. i tried to use the waitForTimeout config within protractor helper. However, i still see this picks default 1s instead my value which is 12s.
output which still picks the 1s timeout
1) Dashboard: Dashboard widgets are loaded:
Wait timed out after 1079ms
Scenario Steps:
- I.waitForClickable({"css":".profile .user-info"}) at Test.Scenario.only (tests\frontoffice\dashboard_test.js:12:7)
- I.resizeWindow(1920, 1080) at Object.login (steps_file.js:18:18)
- I.click("Login") at Object.login (steps_file.js:17:18)
- I.fillField("Password", "xx") at Object.login (steps_file.js:16:18)
- I.fillField("Username", "xx") at Object.login (steps_file.js:15:18)
- I.waitForText("11.22", 120) at Object.login (steps_file.js:14:18)
- I.waitForElement("//html[contains(@ng-app,'xxxx')]", 120) at Object.login (steps_file.js:13:18)
- I.amOnPage("https://xxxx") at Object.login (steps_file.js:12:18)
config section for protractor
{
"tests": "tests/**/*_test.js",
"output": "./output",
"helpers": {
"Protractor": {
"url": "https://xxxx",
"driver": "local",
"browser": "chrome",
"rootElement": "html",
"windowSize": "maximize",
"waitForTimeout" : 120000
},
"MyHelper": {
"require": "./helpers/myhelper.js",
"defaultHost": "http://mysite.com"
}
},
"include": {
"I": "./steps_file.js",
"globalPage": "./pages/global.js"
},
"bootstrap": false,
"mocha": {
"reporterOptions": {
"mochaFile": "output/result.xml",
"reportDir": "output"
}
},
"name": "FastTrack-E2E Tests"
}
codecept.json
- CodeceptJS version: 0.4.12
- NodeJS Version: 6.9.1
- Operating System: Windows 10
- Protractor : 4.0.11
Appreciate if anyone knows the issue/solution?