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. |
mollfpr
left a comment
There was a problem hiding this comment.
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 #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 snippettext - 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 snippettext
mWeb Chrome/Safari
- Open the App and go to any chat
- Copy the test text snippet from the issue #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 snippettext
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
htmlToMarkdownRulesofexpensify-commonrepo to remove unnecessary nested tags inside<pre>tag.And updated
expensify-commoncommit 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
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