Running tests

When we are ready with our test suite we can run the tests. Click on Run.. item in the main menu (or press F6).

Run tests menu item

You get Run Tests modal window

Learn more about "interactive mode" option in Interactive mode

Learn more about "update comparison images" option in CSS Regression Testing

Selecting Staging Environment

The modal window allows you to select a target environment:

Choosing staging environment

Browser Options

We can use Browser options tab to adjust the runner

Browser options tab

By default Puppetry runs tests in headless mode, meaning it launches Chromium in background. You can make to run the tests in Chrome browser with Run in browser switch. Other options:

  • DevTools - enables Chrome DevTools in the browser

  • incognito window - runs the tests in private session

  • maximized - maximizes the browser window

  • fullscreen - switches the browser in fullscreen mode

  • ignore HTTPs errors - tolerates HTTPs errors like invalid certificate

Besides you can manually provide any Chromium command line options in the textbox below.

You can also specify location of Chrome extension. Learn more here

As we press Run button the tests are sent to Jest and we have to wait for Test Report

Tests are running