iaso icon indicating copy to clipboard operation
iaso copied to clipboard

IA-2946 fix tests

Open quang-le opened this issue 1 year ago • 0 comments

Explain what problem this PR is resolving

Related JIRA tickets : IA-2946

Self proofreading checklist

  • [X] Did I use eslint and black formatters
  • [ ] Is my code clear enough and well documented
  • [ ] Are my typescript files well typed
  • [ ] New translations have been added or updated if new strings have been introduced in the frontend
  • [ ] My migrations file are included
  • [ ] Are there enough tests
  • [ ] Documentation has been included (for new feature)

Doc

Nope

Changes

  • Add withRouter to enzyme tests
  • Convert tests that still failed to cypress
  • Delete obsolete enzyme tests, ie: those converted to cypress and those that only checked if page rendered (which is checked by default in cypress)
  • Add dataTestId prop to InputComponent (requires blsq-comp update)
  • Add missingtranslation in UserInfos
  • Updated urls in some tests to add new params in outdated urls (eg: when new filters have been added since the test was first written)

How to test

run enzyme and cypress tests

Passing cypress tests: https://github.com/BLSQ/iaso/actions/runs/9132882143 related commit: https://github.com/BLSQ/iaso/pull/1309/commits/6adc732940505360184604ecbf94f7e9008ac322

quang-le avatar May 16 '24 15:05 quang-le