-
-
Notifications
You must be signed in to change notification settings - Fork 750
Closed
Labels
Description
What are you trying to achieve?
I would like custom steps to be displayed in the same, human-friendly way as predefined steps.
e.g I should see:
successful login with email and password
I try to log in with credentials
- I fill field "email-input", "email"
- I fill field "password-input", "password"
where the first line is the scenario text, the second line is my custom step, specified by a function called tryToLogInWithCredentials
on the actor, and the next two lines are smaller, low-level predefined steps specified by the fillField
function on an actor.
What do you get instead?
successful login with email and password
I: tryToLogInWithCredentials
I fill field "email-input", "email"
I fill field "password-input", "password"
Details
- CodeceptJS version: 2.0.6
- NodeJS Version: 8.11.0
- Operating System:
- Protractor || WebDriverIO || Nightmare version (if related)
- Configuration file:
exports.config = {
tests: './tests/*_test.js',
output: './output',
helpers: {
Puppeteer: {
url: 'http://localhost'
}
},
include: {
I: './steps_file.js'
},
bootstrap: null,
mocha: {},
name: 'app'
}
Had a quick look at the source code, I think the humanize
function from step.js
could be used, I am happy to help with implementation if you decide this would be useful.
AdamOakman, anatolimironau, stracker-phil and sgcib-asi-gbsu-cld-dit-dev