Skip to content

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

Draft
JacquelineLehner wants to merge 3 commits intodevfrom
test/24828-write-missing-reply-test
Draft

test: Add missing regression test for editing replies [WPB-24828]#21167
JacquelineLehner wants to merge 3 commits intodevfrom
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.

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.

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
@sonarqubecloud
Copy link
Copy Markdown

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.

1 participant