-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-11-02] [$500] Dev - Home address - AddressPage (and many more) – Missing displayName prop leads to console error (testID undefined) #28334
Comments
Job added to Upwork: https://www.upwork.com/jobs/~010af2a5f37c5f7f2f |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Proposal - Updated
Please re-state the problem that we are trying to solve in this issue
What is the root cause of that problem?The What changes do you think we should make in order to solve the problem?As mentioned by the quote at the start of the updated proposal we need the following changes:
module.exports = {
rules: {
'rulesdir/no-negated-variables': 'error',
'rulesdir/no-api-in-views': 'error',
'rulesdir/prefer-actions-set-data': 'error',
'rulesdir/prefer-onyx-connect-in-libs': 'error',
'rulesdir/no-thenable-actions-in-views': 'error',
'rulesdir/prefer-early-return': 'error',
'rulesdir/no-inline-named-export': 'error',
'rulesdir/prefer-underscore-method': 'error',
'rulesdir/no-useless-compose': 'error',
'rulesdir/prefer-import-module-contents': 'error',
'rulesdir/no-multiple-api-calls': 'error',
'rulesdir/no-multiple-onyx-in-file': 'error',
'rulesdir/no-call-actions-from-actions': 'error',
'rulesdir/no-api-side-effects-method': 'error',
- 'rulesdir/display-name-property': 'error',
'rulesdir/prefer-localization': 'error',
'rulesdir/onyx-props-must-have-default': 'error',
'no-restricted-imports': ['error', {
paths: [{
name: 'react-native',
importNames: ['Button', 'Text', 'TextInput', 'Picker'],
message: 'Please use an Expensify component from src/components/ instead.',
}, {
name: 'react-native',
importNames: ['SafeAreaView'],
message: 'Please use SafeAreaView from react-native-safe-area-context',
}],
}],
},
};
...
{
files: ['*.js', '*.jsx'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.website.js', '.desktop.js', '.native.js', '.ios.js', '.android.js', '.config.js', '.ts', '.tsx'],
},
},
},
rules: {
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
'no-restricted-imports': [
'error',
{
paths: restrictedImportPaths,
patterns: restrictedImportPatterns,
},
],
curly: 'error',
+ "react/display-name": [
+ "error",
+ {
+ ignoreTranspilerName: false
+ }
+ ],
+ },
+ },
... The video below demonstrates:
What alternative solutions did you explore? (Optional)N/A Videosweb.mp4 |
I'm not sure if this problem is still relevant This PR #28089 should have fixed errors like this |
ProposalPlease re-state the problem that we are trying to solve in this issue
What is the root cause of that problem?
App/src/pages/settings/Profile/PersonalDetails/AddressPage.js Lines 132 to 135 in e74b4d2
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
Check main branch) |
Yes, I have Updated my proposal. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The testID property for the affected pages (e.g., AddressPage) should be assigned a valid value, but it is instead undefined for many pages. What is the root cause of that problem?Some pages have missing definitions for the displayName prop, which is commonly used to set the testID prop. What changes do you think we should make in order to solve the problem?Add a definition for XXXPage.displayName for all pages using a ScreenWrapper, to ensure testID is not undefined. What alternative solutions did you explore? (Optional) |
Sorry, I caused this bug. I think to fix it we should remove the lint rule that prevents setting |
@sobitneupane Huh... This is 4 days overdue. Who can take care of this? |
Assigning myself since I caused all these console errors in #27978 |
As stated above, I want to see a proposal for this issue which fixes it by:
|
We haven't received any proposal that meets the expectation. |
Updated my proposal. |
📣 @sobitneupane Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @ikevin127 You have been assigned to this job! |
📣 @Samueljh1 We're missing your Upwork ID to automatically send you an offer for the Reporter role. |
@ikevin127 the video looks good so I assigned you, but I'm a bit confused about one thing:
Thanks! |
Or if |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.91-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-11-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
|
Triggered auto assignment to @garrettmknight ( |
Bug0 Triage Checklist (Main S/O)
|
📣 @mananjadhav Please request via NewDot manual requests for the Contributor role ($500) |
📣 @Samueljh1 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@garrettmknight we were missing a BZ assignee here, my fault! let's issue payments for this issue. Thanks! |
There was regression fixed in #30397 |
I can help out |
@ikevin127 can you apply to this job posting in Upwork so I can pay you out? |
@Samueljh1 can you accept this offer so I can pay you out? |
Summary of payments:
|
$250 payment approved for @mananjadhav based on comment above. |
Done, thanks |
Everyone's paid - closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The testID property for the page should be assigned a valid value.
Actual Result:
The testID property is undefined. As a result, end-to-end testing is compromised, due to many pages missing testIDs.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: Dev 1.3.74-0
Reproducible in staging?: n
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
bug-1.mov
bug-1-ios-web.mov
Expensify/Expensify Issue URL:
Issue reported by: @Samueljh1
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695735346255799
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: