Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wallet] E2E test improvements #2542

Merged
merged 13 commits into from
Jan 27, 2020
Merged

[Wallet] E2E test improvements #2542

merged 13 commits into from
Jan 27, 2020

Conversation

jmrossy
Copy link
Contributor

@jmrossy jmrossy commented Jan 24, 2020

Description

  • Simplify E2E related scripts into one single run_e2e.sh
  • run_e2e.sh handles properly building and configuring the app
  • Update docs accordingly
  • Fix bundling issue with android VMs
  • Update detox
  • Update RN fast crypto and RN bip 39 with @cmcewen fixes for crashes

Tested

Ran e2e tests

Related issues

Backwards compatibility

Yes

@jmrossy jmrossy requested a review from a team January 24, 2020 19:44
@jmrossy jmrossy requested a review from cmcewen as a code owner January 24, 2020 19:44
@codecov
Copy link

codecov bot commented Jan 24, 2020

Codecov Report

Merging #2542 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2542   +/-   ##
=======================================
  Coverage   73.58%   73.58%           
=======================================
  Files         555      555           
  Lines       13816    13816           
  Branches     1722     1661   -61     
=======================================
  Hits        10167    10167           
- Misses       3369     3370    +1     
+ Partials      280      279    -1
Flag Coverage Δ
#mobile 74.1% <ø> (ø) ⬆️
#web 72.86% <ø> (ø) ⬆️
Impacted Files Coverage Δ
packages/web/src/utils/abortableFetch.ts 71.42% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 034190d...6919b3b. Read the comment docs.

Copy link
Contributor

@jeanregisser jeanregisser left a comment

Choose a reason for hiding this comment

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

Great improvements!! 👍
Couple of small questions before merging.

packages/mobile/.env Show resolved Hide resolved
packages/mobile/README.md Outdated Show resolved Hide resolved
beforeAll(async () => {
await detox.init(config)
})
}, 300000)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice addition! We should add a comment as to why this is needed.
From what I saw, jest swallows errors or timeouts here and happily continues with executing the test suite though this crucial init failed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not 100% sure, I'm just aligning this file with the example on Detox's repo

packages/mobile/scripts/run_e2e.sh Outdated Show resolved Hide resolved
packages/mobile/scripts/run_e2e.sh Outdated Show resolved Hide resolved
packages/mobile/scripts/run_app.sh Outdated Show resolved Hide resolved
@jmrossy jmrossy force-pushed the rossy/wa-e2e-improvements branch from f302d96 to 034190d Compare January 27, 2020 17:44
@jmrossy jmrossy merged commit 23a46eb into master Jan 27, 2020
@jmrossy jmrossy deleted the rossy/wa-e2e-improvements branch January 27, 2020 22:16
aaronmgdr added a commit that referenced this pull request Jan 28, 2020
* master:
  🧹Web cleanup (readme + static dir) (#2562)
  Add readable proposals to governance:view command (#2545)
  Add explicit gas to exchange transactions to prevent errors (#2552)
  Fix off-by-one error in attributing signatures to blocks in CLI (#2559)
  ✅ add test for phone Input component (#2554)
  Add Youtube to Footer +  (#2556)
  Fix rounding error in Election.sol (#2540)
  [Wallet] Bump @celo/client to 0.0.266 (#2551)
  [Wallet] E2E test improvements (#2542)
  Deployed integration (#2550)
  do not fetch affiliates (#2508)
  Added more CLI checks for registering validators and groups (#2491)
  Micro Improvement to web tests (#2527)
  [Wallet] Prompt users with connectivity issues to switch to forno (#2526)
  cli: Fix voter rewards presentation (#2543)
  [Wallet] Fix missing spanish translation  (#2539)
  Downtime slashing when epoch changes (#2436)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants