Skip to content

Conversation

@andrewn
Copy link
Member

@andrewn andrewn commented Aug 22, 2020

This refine's @oruburos' PR #1537 to ensure that all Jest tests using React testing-library can access the en-US translations.

This is good because we want to be testing against how user's see the app e.g. "click the button with label Play sketch".

It also uses translated ARIA Labels in the Toolbar (which causes the tests to fail in the first place).

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • is from a uniquely-named feature branch and has been rebased on top of the latest master. (If I was asked to make more changes, I have made sure to rebase onto master then too)
  • is descriptively named

All tests should import the 'test-utils' file which re-exports all of
the @testing-library functions. It wraps render() in a react-i18next
instance.

It's important that the component being tested is the one returned from
withTranslation().
@andrewn andrewn requested a review from oruburos August 22, 2020 10:39
@andrewn andrewn mentioned this pull request Aug 22, 2020
2 tasks
@andrewn
Copy link
Member Author

andrewn commented Aug 25, 2020

@oruburos Can you review this please

@andrewn andrewn merged commit af1a5cc into processing:develop Aug 26, 2020
@andrewn andrewn deleted the toolbar-aria-labels branch August 26, 2020 12:19
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.

2 participants