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
Bug 1998364: Use the central i18n mocks for all tests and add support for variables #9901
Bug 1998364: Use the central i18n mocks for all tests and add support for variables #9901
Conversation
4f30a9b
to
53af4f0
Compare
const { kind, name } = InternalReduxStore.getState().UI.get('impersonate', {}); | ||
let kind: string; | ||
let name: string; | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a bad rebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A wip fix for another unit test issue. Always good to have someone looking closely.
Rebased and removed this change.
53af4f0
to
4a8c352
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jerolimov, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@jerolimov: This pull request references Bugzilla bug 1998364, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla (gamore@redhat.com), skipping review request. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@jerolimov: All pull requests linked via external trackers have merged: Bugzilla bug 1998364 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1998364
Analysis / Root cause:
Mocking
react-i18next
was required in many tests and was inconsistent implemented per test.Solution Description:
Remove
react-i18next
from individual tests and extend the existing central implementation with variable support.Update tests so that they doesn't expect any package prefix (
public~
etc.) anymore and that the expected strings contains real variable values.Screen shots / Gifs for design review:
Nothing changed on the UI.
Unit test coverage report:
Should not be affected.
Test setup:
yarn test
Browser conformance:
Not relevant