How do i make the report user friendlier?
It would make a little easy to read if this • I select option "select[id='selectID']", "1"
gets changed to something like "I select option male in gender."
Or this • I click {"css":"button[id='Submit']"} to "I click Submit"
I think you can start by implementing your own methods in a helper class. You can create a helper, call a corresponding method from your primary helper (probably WebDriverIO), then you can use it the way you like it
class MyHelper extends Helper {
selectOptionMaleInGender() {
return this.helpers['WebDriverIO'].selectOption("select[id='selectID']", "1");
}
}
The idea is to create custom wrappers around functions you want to be described better
Will that end up saying I select option Male in Gender?
On Friday, 9 September 2016, Michael Bodnarchuk [email protected] wrote:
Closed #224 https://github.com/Codeception/CodeceptJS/issues/224.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Codeception/CodeceptJS/issues/224#event-783128925, or mute the thread https://github.com/notifications/unsubscribe-auth/ABkjoxjV72dINVxs4VvKCle4_Meuv5e0ks5qoIHpgaJpZM4J3c0r .
Enrique T. Campita II Software Quality Assurance Analyst / Automation
yes
I select option male in gender