Problem/Motivation
There is no need to use t() in tests, unless we're testing translations, however in core we do not follow this consistently, which does not set a good example for new contributions.
In #3133726: [meta] Remove usage of t() in tests not testing translation we identified there are severals of calls to t() in calls to clickViewsOperationLink(), helperButtonHasLabel() and optionExists() and that removing all these in one go seems to be a suitable way of attacking this problem.
Proposed resolution
Identify and remove all calls to t() wrapped in calls to clickViewsOperationLink(), helperButtonHasLabel() and optionExists(), except those used by translation-related code (if any).
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #2
hardik_patel_12 commentedKindly review the patch.
Comment #3
hardik_patel_12 commentedComment #4
siddhant.bhosale commentedComment #5
siddhant.bhosale commentedHi @Hardik_Patel_12,
The following hunk already exists in the core, and was skipping while applying the patch. So removing the code from your patch.
Marking this to needs work.
Comment #6
siddhant.bhosale commentedHi,
Adding the new patch and interdiff. Please review
Comment #7
mondrakeComment #8
longwaveConfirmed there are no uses of t() remaining in calls to these three methods after applying #6.
Comment #9
alexpottCommitted and pushed 7ad99c1ee8 to 9.1.x and b6c39ff6a2 to 9.0.x and 2ebe9ce923 to 8.9.x. Thanks!
Backported to 8.9.x to keep tests aligned.