Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

#110 Sorting out tests: Safe creation and Safe loading, fix the validator for safe address #113

Merged
merged 6 commits into from May 31, 2019

Conversation

mmv08
Copy link
Member

@mmv08 mmv08 commented May 30, 2019

This PR:

  • Refactoring of two DOM tests: safe creation and safe load
  • react-testing-library is now used
  • move babel config from .babelrc to babel.config.js because of this: babel-jest does not transpile import/export in node_modules when Babel 7 is used jestjs/jest#6229 (comment)
  • prettified config/ and scripts/ files and few more (Prettier ❤️)
  • jest configuration was moved to jest.config.js so we can use some JS in the configuration
  • adds a new prop testId to Stepper and GnoForm component for testing purposes
  • fixes safeFieldsValidation function in Load Safe form. Previously it was retrieving an address of a proxy contract by calling .implementation() from a contract, in contracts v1.0.0 it was removed, so we have to get it from contract storage. The same approach is used in gnosis-py: https://github.com/gnosis/gnosis-py/blob/master/gnosis/safe/safe.py#L449
  • commented out fetchTransaction action because it broke the build, will refactor this once we get to work on transaction list

@gnosis-info
Copy link

Travis automatic deployment:
https://pr113--safereact.review.gnosisdev.com

Storybook book automatic deployment:
https://pr113--safereactstorybook.review.gnosisdev.com

@mmv08 mmv08 requested a review from germartinez May 30, 2019 15:22
@mmv08 mmv08 merged commit 031766f into development May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants