-
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
[NoQA] e2e: record messageSent
interaction
#43302
[NoQA] e2e: record messageSent
interaction
#43302
Conversation
@@ -48,6 +49,10 @@ function TextCommentFragment({fragment, styleAsDeleted, styleAsMuted = false, so | |||
const {translate} = useLocalize(); | |||
const {isSmallScreenWidth} = useWindowDimensions(); | |||
|
|||
useEffect(() => { | |||
Performance.markEnd(CONST.TIMING.MESSAGE_SENT, {message: text}); |
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.
I'm just curious if we need to measure it after each text change or if it should be used only once
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.
Well, basically this effect will be called every time (i. e. for each text message), but since there is no corresponding start event -> such measurements will be ignored. And we'll get measurements only for associated end/start events with the same text/message. I hope I answered on the question 😅
585bdf4
to
06f87b3
Compare
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!
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
messageSent
interactionmessageSent
interaction
messageSent
interactionmessageSent
interaction
We want to check if the network caching is working correctly when sending a message. We will send an actual message to the server during the warmup phase of the test, but on subsequent runs where we use the network cache we shouldn't send a real request to the server. Let's make sure it works correctly! |
@kirillzyusko Sorry, there are conflicts now. Is this ready to be merged or you need to address the comment from Hanno first? |
@mountiny Yeah, I need to check that first 👍 |
@kirillzyusko ping me in slack when this is ready, thank you! |
@hannojg I resolved all merge conflicts - would you mind to have a look? 👀 |
@hannojg I verified and adjusted the code to match this requirement! The PR is ready for a review! |
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 @hannojg did you want to give this one a review?
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.
As internally discussed: LGTM!!
✋ 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: 9.0.25-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.25-0 🚀
|
To Do
The original test is flaky one, so it has to fixed before merging this PR.
Details
Should be merged after #43178
Fixed Issues
$ #35225
PROPOSAL: #35225 (comment)
Tests
Offline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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