CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

How do i make the report user friendlier?

Open ecampii opened this issue 10 years ago • 3 comments

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"

ecampii avatar Sep 07 '16 23:09 ecampii

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

DavertMik avatar Sep 08 '16 21:09 DavertMik

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

ecampii avatar Sep 14 '16 07:09 ecampii

yes

I select option male in gender

DavertMik avatar Sep 14 '16 09:09 DavertMik