Skip to content

test: Add missing regression test for editing replies [WPB-24828]#21167

Merged
JacquelineLehner merged 7 commits into
devfrom
test/24828-write-missing-reply-test
May 8, 2026
Merged

test: Add missing regression test for editing replies [WPB-24828]#21167
JacquelineLehner merged 7 commits into
devfrom
test/24828-write-missing-reply-test

Conversation

@JacquelineLehner
Copy link
Copy Markdown
Collaborator

@JacquelineLehner JacquelineLehner commented Apr 28, 2026

TaskWPB-24828 [Web][QA] Write missing tests in Regression -> Reply folder

PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

The regression test suite was missing a test for the reply flow, specifically for TC-3019: I want to edit my reply.
NOTE: As discussed with @iskvortsov, the test is currently skipped due to flakiness. The underlying issue is tracked in WPB-25411.

Solutions

This PR implements the missing automated test for TC-3019.

It ensures users can successfully edit replies and that the UI accurately reflects edits to both replies and original quoted messages. The implemented scenario verifies:

  • The unread reply indicator appears correctly in the conversation list.
  • The quote box is not visible in the input field while editing a reply.
  • Edits made to an original message are dynamically reflected in the quoted text of the reply.
  • Updating a message containing a URL successfully syncs the new text and link to the recipient.
  • Clicking a URL inside a quoted reply successfully opens the correct link in a new tab.

PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@JacquelineLehner JacquelineLehner force-pushed the test/24828-write-missing-reply-test branch 2 times, most recently from 6addb8c to 5d1ce6b Compare May 8, 2026 07:21
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.95%. Comparing base (5165658) to head (6e6b002).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev   #21167   +/-   ##
=======================================
  Coverage   44.95%   44.95%           
=======================================
  Files        1704     1704           
  Lines       44838    44838           
  Branches     9379     9379           
=======================================
  Hits        20157    20157           
  Misses      22387    22387           
  Partials     2294     2294           
Flag Coverage Δ
app_webapp 43.08% <ø> (ø)
lib_api_client 51.72% <ø> (ø)
lib_core 58.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread apps/webapp/test/e2e_tests/specs/Reply/reply.spec.ts Outdated
Comment thread apps/webapp/test/e2e_tests/specs/Reply/reply.spec.ts Outdated
This commit completes the regression test coverage for the Reply
functionality by implementing TC-3019.

The test verifies:
- Sending a message and receiving a reply from another user.
- The unread reply indicator appears in the conversation list.
- A user can successfully edit their reply message.
- A user can edit the original message, and the quote inside the
  reply accurately reflects these changes.
- Interacting with edited URLs inside quoted replies correctly
  opens them in a new tab.

To support these assertions, the page objects were updated:
- `conversation.page.ts`: Added `replyQuoteBoxAboveMessageInputField`
  to verify the quote preview UI disappears during editing.
- `conversationList.page.ts`: Added `unreadReplyIndicator` to
  assert the visibility of the new reply notification icon.

Refs: WPB-24828
…C-3019)

- Added intermediate `toBeVisible()` assertions after sending/editing messages to ensure the UI state is fully synced and to prevent race conditions.
- Fixed a locator issue by removing the `sender` property and adding `.first()` when verifying a user's own outgoing messages
- Added an explicit wait to ensure the transient "deleted" placeholder (`You cannot see this message`) disappears before asserting the updated quote text, eliminating flakiness.

Refs: WPB-24828
… message' since it was only needed to investigate a bug

Refs: WPB-24828
…url in the quotes message' since it was only needed to investigate a bug

Refs: WPB-24828
@JacquelineLehner JacquelineLehner force-pushed the test/24828-write-missing-reply-test branch from 5d1ce6b to 6e6b002 Compare May 8, 2026 12:25
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

🔗 Download Full Report Artifact

🧪 Playwright Test Summary

  • Passed: 15
  • Failed: 0
  • Skipped: 0
  • 🔁 Flaky: 0
  • 📊 Total: 15
  • Total Runtime: 136.9s (~ 2 min 17 sec)

@JacquelineLehner JacquelineLehner added this pull request to the merge queue May 8, 2026
Merged via the queue into dev with commit 1d35a7e May 8, 2026
34 checks passed
@JacquelineLehner JacquelineLehner deleted the test/24828-write-missing-reply-test branch May 8, 2026 16:49
screendriver pushed a commit that referenced this pull request May 15, 2026
…-test

test: Add missing regression test for editing replies [WPB-24828]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants