Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Igor Mucsicska
committed
Dec 5, 2016
1 parent
baf0c36
commit d33eec6
Showing
6 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* eslint-env mocha */ | ||
const chai = require('chai') | ||
chai.should() | ||
const testCaseFactory = require('./test-case-factory') | ||
|
||
describe('Config', () => { | ||
it('should pass cucumberArgs as additional CLI parameters to cucumber', () => { | ||
return testCaseFactory | ||
.create('config-cucumber-args-test', { | ||
nightwatchClientAsParameter: true, | ||
cucumberArgs: '--format progress --format-options {"colorsEnabled":false}' | ||
}) | ||
.feature('addition') | ||
.scenario('small numbers') | ||
.given('User is on the simple calculator page', (client) => { client.init() }) | ||
.and('User enter 4 in A field', (client) => { client.setValue('#a', 4) }) | ||
.and('User enter 5 in B field', (client) => { client.setValue('#b', 5) }) | ||
.when('User press Add button', (client) => { client.click('#add') }) | ||
.then('The result should contain 9', (client) => { client.assert.containsText('#result', 9) }) | ||
.scenario('big numbers') | ||
.given('User is on the simple calculator page') | ||
.and('User enter 4 in A field') | ||
.and('User enter 5 in B field') | ||
.when('User press Add button') | ||
.then('The result should contain 9') | ||
.run() | ||
.then((result) => { | ||
result.output.should.contain('..........') | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters