Skip to content

[$2000] Web -Chat - Line breaks are not displayed correctly after special copy/paste scenario #16668

Closed

Description

@kbecciv

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when executing PR #16464

Action Performed:

There will be 2 test cases:

Test case 1 (Test issue in previous PR) - Use the following text for the test (it has 4 newlines + has web link):
I'm around if you are and wanna hop on a call https://meet.google.com/yjx-maas-pku

Nothing specific in mind
Test case 2 (Test the current issue) - Use the following text for the test (it has 4 newlines + no web link):
I hope you have a good day

Cheers
Follow the steps for both scenario or you can use PR link above

  1. Copy that text in Test case 1
  2. Paste it normally into the chat composer using ctrl+v
  3. Verify that it still contains the 4 newlines
  4. Paste it without formatting into the chat composer user ctrl+shift+v
  5. Verify that it still contains the 4 newlines and no more
  6. Send the message
  7. Copy the previous message by right-clicking the message and select copy it to clipboard
  8. Repeat steps 2-5
  9. Copy the message by clicking the copy to clipboard in the hover menu
  10. Repeat steps 2-5
  11. Copy the message by highlighting all the text of the comment, right-click the message > select copy to clipboard
  12. Repeat steps 2-5
  13. Copy text inside the composer input that contains newlines by using ctrl+c
  14. Repeat steps 2-5
  15. Copy text inside the composer input that contains newlines by using ctrl+x
  16. Repeat steps 2-5
  17. Repeat steps 1->16 for Test case 2

Expected Result:

  1. It has 4 newlines + has web link
  2. It has 4 newlines + no web link

Actual Result:

Scenario 1:
Step 5. 3 lines instead of 4 for both
Step 8. Paste it without formatting into the chat composer user ctrl+shift+v - 7 lines instead 4
Step 11. two ways is failed - 7 lines instead of 4
Step 13. two ways is failed - 7 lines instead of 4
Scenario 2:
Step 5. 3 lines instead of 4 for both
Step 8. Paste it without formatting into the chat composer user ctrl+shift+v - 7 lines instead 4

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • Windows/ Chrome
  • MacOS / Desktop

Version Number: 1.2.91.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

If this was caught during regression testing, add the test name, ID and link from TestRail:

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

16464.Web.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013db20b7edebe8630
  • Upwork Job ID: 1651166295134699520
  • Last Price Increase: 2023-05-04

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Mar 29, 2023
  2. MelvinBot commented on Mar 29, 2023

    @MelvinBot
    Contributor

    Triggered auto assignment to @kevinksullivan (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. MelvinBot commented on Mar 29, 2023

    @MelvinBot
    Contributor

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. kevinksullivan commented on Mar 31, 2023

    @kevinksullivan
    Contributor

    hi @kbecciv I assume based on the other PR this is specific to MacOS / Chrome / Safari ?

  5. kevinksullivan commented on Mar 31, 2023

    @kevinksullivan
    Contributor

    Also, are you saying I should test both test case 1 AND 2? Or, because that other issue exists, I'll just do test case 2?

  6. kbecciv commented on Mar 31, 2023

    @kbecciv
    Author

    Hey @kevinksullivan The tester was QAring on Windows/Chrome, updated the environment.
    Both scenario did not work correctly, to test both test case 1 AND 2 will be better.

  7. kevinksullivan commented on Mar 31, 2023

    @kevinksullivan
    Contributor

    Ok, thanks @kbecciv . Next question here. What exactly should I do for these test cases? The steps says:

    Test case 1 (Test issue in previous PR) - Use the following text for the test (it has 4 newlines + has web link):
    I'm around if you are and wanna hop on a call https://meet.google.com/yjx-maas-pku

    Nothing specific in mind
    Test case 2 (Test the current issue) - Use the following text for the test (it has 4 newlines + no web link):
    I hope you have a good day

    Cheers

    You're saying in the first test I should take this text and go test the other PR?

    I'm around if you are and wanna hop on a call https://meet.google.com/yjx-maas-pku

    Nothing specific in mind

    Then, for test 2, you're saying I copy/paste this?

    I hope you have a good day

    Cheers

    I'm a bit confused since you say these have 4 "new lines", but I don't understand how you're getting that number?

  8. MelvinBot commented on Apr 4, 2023

    @MelvinBot
    Contributor

    @kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick!

  9. kevinksullivan commented on Apr 5, 2023

    @kevinksullivan
    Contributor

    @kbecciv feel free to assign me back once you've clarified. Just want to make sure I understand how this is supposed to work, since there are a lot of steps here!

  10. 38 remaining items

  11. eVoloshchak commented on May 1, 2023

    @eVoloshchak
    Contributor

    Not overdue, this is awaiting proposals

  12. grgia commented on May 1, 2023

    @grgia
    Contributor

    Awaiting proposals

  13. sakluger commented on May 4, 2023

    @sakluger
    Contributor

    It's been a week with no proposals, let's increase the price.

  14. changed the title [-][$1000] Web -Chat - Line breaks are not displayed correctly after special copy/paste scenario[/-] [+][$2000] Web -Chat - Line breaks are not displayed correctly after special copy/paste scenario[/+] on May 4, 2023
  15. MelvinBot commented on May 4, 2023

    @MelvinBot
    Contributor

    Upwork job price has been updated to $2000

  16. sakluger commented on May 8, 2023

    @sakluger
    Contributor

    I'm actually going to close this one out. I think there's a good chance that there is something specific to the GH formatting that causes the NewLine to not appear when pasting with formatting, and so there's a good chance this is expected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions