- Download Chrome for Testing from here: https://googlechromelabs.github.io/chrome-for-testing/#stable
- Unzip
chrome-mac-arm64.zip
- Remove "downloaded from internet" attribute:
cd <path to unzipped chrome-mac-arm64>
sudo xattr -cr 'Google Chrome for Testing.app'
- Copy 'Google Chrome for Testing.app' to Applications
- Install IntelliJ IDEA CE
- Install Rosetta (only applies to M1+ processors):
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
- Make sure "Require password after screen saver begins or displayed is turned off" setting is set to 1 hour or more
brew install --cask git-credential-manager
git clone https://github.com/tsadovska/wormhole-connect-automation-tests
Copy .env.example
to .env
file and enter missing values.
- Metamask extension
- Open project in IntelliJ IDEA
- Open Maven toolbar -> Click "Reload All Maven Projects" button
- Right click "src/test/java/support/Browser" -> "Run Browser.main()"
- Open chrome://extensions/
- Enable Developer mode
- Drag and drop
metamask-chrome-10.34.5.crx
from IntelliJ IDEA into Chrome - Enable Test networks in MetaMask
- Put wallet unlock password to
.env
file
- Setup Phantom wallet:
- Install from https://chromewebstore.google.com/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa?hl=en-US
- Enable "Testnet Mode" in Settings > Developer Settings
- Put wallet unlock password to
.env
file
- Setup Leap wallet:
- Install from https://chromewebstore.google.com/detail/leap-cosmos-wallet/fcfcfllfndlomdhbehjjcoimbgofdncg?hl=en
- Change "Network" to "Testnet"
- Put wallet unlock password to
.env
file
- Setup Sui wallet:
- Install from https://chromewebstore.google.com/detail/sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil
- Change "Network" to "Testnet"
- Put wallet unlock password to
.env
file
For mainnet testing, do the same steps with BrowserMainnet. To start mainnet browser: right click "src/test/java/support/BrowserMainnet" -> "Run BrowserMainnet.main()".
- Install "Cucumber for Java" plugin in IntelliJ IDEA
- Right click on any ".feature" file -> Run
git clone https://github.com/MetaMask/metamask-extension.git
git checkout master
Follow MetaMask Building on your local machine guide:
brew install corepack
corepack enable
cp .metamaskrc{.dist,}
# create an account on https://app.infura.io/register
# make sure all networks are enabled for the new Infura API Key
# Update .metmaskrc file: replace the INFURA_PROJECT_ID value with your own personal Infura API Key.
yarn install
node ./development/build/index.js dist --apply-lavamoat=false
Open chrome://extensions/
, click "Pack extension"
Set Extension root directory
to "dist/chrome" directory inside metamask-extension directory.
Click Pack extension
.
Generated "chrome.crx" can now be installed in Google Chrome for Testing.
- Create a Google Spreadsheet, update
.env
file. - Follow this guide to create
credentials.json
file. - Save
credentials.json
file tosrc/test/resources
directory. - Follow this guide to enable Google Drive API.
- Follow this guide to enable People API.