This repo contains the end2end tests for Google Maps.
Uses Javascript stack, namely WebdriverIO, a test framework for Node.js that runs on the WebDriver Protocol for cross browser testing. For now supports execution in Chrome and Firefox browsers.
Before proceeding make sure you have NodeJS.
- NodeJS - Javascript Runtime
Clone the repository:
$ git clone [email protected]:pedrommvv/e2e-google-maps.git
Then cd e2e-google-maps
and:
$ npm install
Rename one of the .env.*
to .env
file in the root of the project, depending on the language you have in Google Maps. Currently only exists for PT-PT and EN-UK , but you can create new ones.
For usage of geckodriver (Firefox) in Mac Catalina 10.15, bypass the notarization requirement on macOS. Below commands should fix it.
cd node_modules/geckodriver/
% xattr -r -d com.apple.quarantine geckodriver
$ npx wdio wdio-chrome.conf.js
$ npx wdio wdio-firefox.conf.js
Tested in:
- MacOS Catalina 10.15
- Node.js v12.18.0
- WebDriverIO v6
- Chrome Browser Version 86.0.4240.183 (Official Build) (x86_64)
- Firefox Browser Version 82.0.2 (64-bit)
Windows
- Couldn't start geckodriver in Windows (need more clarification..)