[NoQA] Tests for group chat name#46661
Conversation
|
@marcaaron Last one was reverted because of some workflow issues, can you check this? |
|
@ShridharGoel What caused the workflow issues? |
|
Some typecheck issues after getting merged (checks had passed in the old PR). #40658 (comment) |
|
Can you please point to the changes that fixed the workflow issues? |
|
@ShridharGoel Did you get a chance to check my above comment? (Also please fix ts errors) |
|
I think the issue was that the signature of |
|
@ShridharGoel Can you please fix the ts errors |
|
@ShridharGoel Any updates on this? |
|
Updated. |
s77rt
left a comment
There was a problem hiding this comment.
Please refer to tests/ui/UnreadIndicatorsTest.tsx once again as the logic get simplified
tests/utils/TestHelper.ts
Outdated
| await waitForBatchedUpdatesWithAct(); | ||
| } | ||
|
|
||
| function beforeAllSetupUITests(shouldConnectToPusher = false) { |
There was a problem hiding this comment.
This is no longer needed. There is setupApp and setupGlobalFetchMock that does the same
There was a problem hiding this comment.
Is this still needed? We have this mock in jest/setup.ts
|
@ShridharGoel Any updates? |
|
@ShridharGoel Did you get a chance to look into this? |
|
Will check this within 2 days. |
|
@ShridharGoel This PR still needs to be merged Were you able to look into addressing the previous review |
tests/ui/GroupChatNameTests.tsx
Outdated
| beforeAll(() => { | ||
| TestHelper.beforeAllSetupUITests(); | ||
| }); |
There was a problem hiding this comment.
I think we need to call TestHelper.setupApp(); instead
|
@ShridharGoel Please address #46661 (comment) as well |
|
One test, |
|
The failing part is related to LHN not the report header. Both are returning 5 items which seems correct (and consist), let's just update the test to reflect that |
|
Can you check why is the UnreadIndicatorsTest failing |
tests/ui/UnreadIndicatorsTest.tsx
Outdated
|
|
||
| // We need a large timeout here as we are lazy loading React Navigation screens and this test is running against the entire mounted App | ||
| jest.setTimeout(30000); | ||
| jest.setTimeout(45000); |
There was a problem hiding this comment.
Any idea why this is suddenly required?
There was a problem hiding this comment.
No, the only change in this file was moving navigateToSidebarOption to TestHelper.
There was a problem hiding this comment.
I'm not following. Why are we increasing it?
There was a problem hiding this comment.
Because one existing test was failing because of timeout.
|
@ShridharGoel Please address #46661 (comment) |
|
@ShridharGoel please give daily updates on this PR until it is merged. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@ShridharGoel Can you please resolve the conflicts |
|
@marcaaron Can you please merge this |
|
Yes, but FWIW - I did not find the answer to this question to be very clear... #46661 (comment) |
|
@marcaaron That test was failing randomly on other PRs due to the given timing not being enough. Recently the timeout was increased and this PR no longer modifies it (since it's already enough). |
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.0.65-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.65-5 🚀
|
Details
Tests for group chat name.
Fixed Issues
$ #40189
PROPOSAL: #40189 (comment)
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop