-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[DEV] E2e/add typing tests #30502
[DEV] E2e/add typing tests #30502
Conversation
@shubham1206agra Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
What do I need to do in this PR? |
Updated with main, should be good now! |
Okay, sorry there were more issues, now we should be good 😅 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
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.
Big PR, in general this looks good to me. @AndrewGable do you want to review too?
@hannojg - Looks like there are conflicts. I can merge once they are resolved. |
Conflicts resolved @AndrewGable |
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.
Conflicts resolved, thanks!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.96-0 🚀
|
I think this PR might caused this regression here: #31027 |
ownerEmail: '__fake__', | ||
ownerAccountID: 0, | ||
managerEmail: '__fake__', |
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.
FYI we don't want to be storing ownerEmail
or managerEmail
anymore - I'm in the process of removing these from everywhere in the app & soon will stop sending them from the backend in onyx 👍
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.96-15 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀
|
Details
This adds another test to the e2e test suite. It uses a difference in approach, in that it doesn't check for time durations, but rather counts the re-render of a component.
We have reassure for these kinds of tests yes, but they are running always very isolated and don't account well for re-renders caused by API calls or various onyx stuff going on.
In addition some DX improvements were added.
Detailed change explanation:
.e2e.js
file ending. This allows us to exchange components against e2e implementation when the app runs the e2e tests. Usually we'd do that to wrap an existing component to add metric collection around it.ADDING_TESTS.md
+package.json
, to give a better DX for anyone adding or maintaining the e2e testsFixed Issues
$ #30265
PROPOSAL: #30265
Note: that doesn't fully close the issue, its just part of it.
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop