Skip to content
This repository was archived by the owner on Dec 13, 2019. It is now read-only.

[greenboard] Implement E2E tests #1906

Merged
merged 57 commits into from
Aug 1, 2019
Merged

[greenboard] Implement E2E tests #1906

merged 57 commits into from
Aug 1, 2019

Conversation

joelalejandro
Copy link
Contributor

@joelalejandro joelalejandro commented Jul 17, 2019

This PR implements a basic suite of end-to-end tests for Counterfactual, using Selenium and chromedriver.

💚 Greenboard

An automated end-to-end test suite for Counterfactual, built with Selenium.

How does it work?

This package is executed from the monorepo's root, via yarn test:e2e.

How do I write a new scenario?

  • Add a .spec.ts file into the tests/ folder.
  • Instantiate the TestBrowser class and start an instance.
  • Add the following steps:
await browser.openMetamask();
await browser.setupMetamask();
await browser.waitForMetamaskMainScreen();
await browser.setMetamaskNetwork("kovan");
await browser.openCounterfactualWallet();
await browser.authorizeWallet();

This will preconfigure Metamask and connect the Wallet UI with the Ethereum provider.

Contributes to #1852.

Copy link
Collaborator

@spersico spersico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow

@joelalejandro joelalejandro marked this pull request as ready for review July 24, 2019 21:36
@joelalejandro joelalejandro requested a review from snario as a code owner July 24, 2019 21:36
@joelalejandro joelalejandro merged commit a629680 into master Aug 1, 2019
@joelalejandro joelalejandro deleted the joel/e2e branch August 1, 2019 06:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants