Automate UI testing with Mocha and Puppeteer (Updated)

Reading Time: 2 minutesGithub: https://github.com/railsstudent/image-gallery-native-js yarn add puppeteer mocha chai yarn add puppeteer mocha chai Create bootstrap.js file to share global variables among tests. Expose chai.expect, chai.assert and an instance of browser ‘use strict’; const puppeteer = require(‘puppeteer’); const chai = require(‘chai’); const expect = chai.expect; const globalVariables = { browser: global.browser, expect: global.expect }; // puppeteer options … Read more