Skip to content

Higher order gauge steps implementation to use taiko natively

License

Notifications You must be signed in to change notification settings

roopaPS305/gauge-taiko-steps

 
 

Repository files navigation

Gauge Taiko Steps

Implements gauge steps for Taiko API, so that tests can be directly written without having to implement steps for most common scenarios.

How to use it

Installl this npm package to your Gauge js project.

# npm
npm i @softrams/gauge-taiko-steps

# yarn
yarn add @softrams/gauge-taiko-steps

And update STEP_IMPL_DIR in /env/default/js.properties to include steps implemenation from this package.

STEP_IMPL_DIR = node_modules/@softrams/gauge-taiko-steps/lib, \
                tests

And that's it. Start writing tests. You can check all available steps in the lib folder. Here is a sample test showing some of the steps available

Sample Test Scenario

  • Emulate device "iPad Pro landscape"

  • Emulate network "Good3G"

  • Emulate timezone "America/New_York"

  • Set screen size as width "1600" height "900"

  • Goto "/"

  • Check "link" with text "Link Text" exists

  • Check "button" with text "FAQs" exists

  • Write "hello" into "search"

  • Select "value" from dropDown "dropdown"

  • Click "button" with text "Click Me"

  • Save screenshot

  • Write "05/08/2020" into dateField with text "{"placeholder":"Filter by Created Date"}"

  • Click "button" closer "toRightOf" text "Entity Information"

Test for Accessibility

  • Audit page for accessibility

Related projects

Thanks to these amazing projects

About

Higher order gauge steps implementation to use taiko natively

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%