Basically, I did everything as described in get started
section on http://codecept.io/ page.
devDependencies from package.json:
"codeceptjs": "^0.5.1",
"nightmare": "^2.10.0",
"nightmare-upload": "^0.1.1"
codecept.json:
{
"tests": "./tests/acceptance/*_test.js",
"timeout": 10000,
"output": "./output",
"helpers": {
"Nightmare": {
"url": "http://localhost:8080",
"show": false,
"restart": false
}
},
"include": {},
"bootstrap": false,
"mocha": {},
"name": "vagrant"
}
The test itself is also from tutorial:
Feature('My first test');
Scenario('test something', (I) => {
I.amOnPage('http://yahoo.com');
I.fillField('p', 'github nightmare');
I.click('Search Web');
I.waitForElement('#main');
I.seeElement('#main .searchCenterMiddle li a');
I.seeElement("//a[contains(@href,'github.com/segmentio/nightmare')]");
I.see('segmentio/nightmare','#main li a');
});
When I run codeceptjs run --steps
I get an output in console:
screenshot
It doesn't matter is test should pass or fail, output is always the same.
Does anybody knows what am I doing wrong and how to fix it?