Skip to content

IrinaSouth/webdriverio-cucumber-typescript-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webdriverio-cucumber-typescript-sample

Sample webdriverio v.4 with cucumber and typescript

  1. Install the dependencies (yarn install)

Now you are ready to write your own features. WebdriverIO used is Version 4 WebdriverIO

Quick changes to run the tests locally

  1. Comment out most of the chromeOptions args leaving only '--start-maximized'
    // 'headless', 'disable-gpu', 'disable-dev-shm-usage', 'verbose', 'no-sandbox', 'log-path=chromedriver.log', '--remote-debugging-port=9222',
    
  2. To run all feature files run
    yarn run wdio wdio.ci.conf.js
    
  3. To run a specific feature file add '--spec' e.g.
    yarn run wdio wdio.ci.conf.js --spec ./src/features/WebSmokeTest.feature
    
    

baseUrl can be set in

wdio.ci.conf.js

Test report path

tmp/report/index.html

About

Sample webdriverio v.4 with cucumber and typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published