-
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
delete nested tag inside pre tag #24549
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
@akamefi202 Could you complete the records on all platforms? |
Also, the test should copy-paste the text, not the markdown snippet, right? |
We can't reproduce this issue in mobile platforms because it includes keyboard shortcut for copying.
At first, we need to copy-paste markdown text to send a message. After that, we copy-paste that message by clipboard button & keyboard shortcut for checking difference. |
Okay, let's clarify the test for native is copy from the context menu. While the others is from the selection copy. |
@mollfpr Okay. I updated the first comment. |
Reviewer Checklist
Screenshots/VideosWebNew.Recording.-.8_17_2023.11_33_17.PM.webmMobile Web - ChromeScreen_Recording_20230817_234037_Chrome.mp4Mobile Web - SafariSimulator.Screen.Recording.-.iPhone.14.Pro.-.2023-08-17.at.23.35.24.mp4DesktopScreen.Recording.2023-08-17.at.23.36.10.moviOSSimulator.Screen.Recording.-.iPhone.14.Pro.-.2023-08-17.at.23.34.33.mp4AndroidScreen_Recording_20230817_233913_New.Expensify.Dev.mp4 |
I need to complete the records. @akamefi202 The test is still doable for the mWeb with the selection copy from the GH issue. So, please complete the records test on all platforms. For the native platforms, please copy the text from the context menu and verify it's pasting correctly. |
@mollfpr I uploaded recording videos for all platforms. |
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 and tests well 👍
@akamefi202 Could you update the test case to clarify the test on mweb and the native platforms?
Web/Desktop
- Open the App and go to any chat
- Copy the test text snippet from the issue [HOLD for payment 2023-08-30] [$1000] Web - Markdown pasted from selection-copy is different from clipboard-copy #23659 using the cursor selection
test heading
Code snippet
- Paste the text to the composer's input
- Verify there's no new line under the
Code snippet
text - Send the pasted text from the previous step
- Copy the text sent with the cursor selection
- Paste the text to the composer
- Verify there's no new line under the
Code snippet
text
mWeb Chrome/Safari
- Open the App and go to any chat
- Copy the test text snippet from the issue [HOLD for payment 2023-08-30] [$1000] Web - Markdown pasted from selection-copy is different from clipboard-copy #23659 using the cursor selection
test heading
Code snippet
- Paste the text to the composer's input
- Verify there's no new line under the
Code snippet
text
iOS/Android
- Open the previous chat use to test Web/Desktop/mWeb
- Copy the text from the app context menu
- Paste the text to the composer's input
- Verify pasted text is the same as copied text
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Updated #24549 (comment) |
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.56-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|
Added a new rule to
htmlToMarkdownRules
ofexpensify-common
repo to remove unnecessary nested tags inside<pre>
tag.And updated
expensify-common
commit hash inpackage.json
.Details
expensify-common PR
Updated expensify-common dependency to latest commit hash.
Fixed Issues
$ #23659
PROPOSAL: #23659 (comment)
Tests
Web/Desktop
mWeb Chrome/Safari
iOS/Android
Offline tests
Same as above
QA Steps
Same as above
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
We can't reproduce this issue in mobile platforms because it includes copying by keyboard shortcut.
Web
258146529-abf29a55-f9a4-4627-b1e0-3e0696ff8239.mp4
Mobile Web - Chrome
device-2023-08-17-154724.mp4
Mobile Web - Safari
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-08-17.at.15.00.36.mp4
Desktop
Screen.Recording.2023-08-17.at.5.32.23.AM.mp4
iOS
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-08-17.at.14.41.03.mp4
Android
az_recorder_20230817_162739.mp4