Skip to content

test: new member messaging critical flow test (WPB-19322) #4182

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

Merged
merged 7 commits into from
Aug 15, 2025

Conversation

emmaoke-w
Copy link
Contributor

@emmaoke-w emmaoke-w commented Aug 13, 2025

TaskWPB-19322 [Android/QA]Create critical flows test for new member messaging


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?

Adapt new member messaging test for critical flow
Adapt function to add member to group conversation
Adapt function to exchange message
Update test method definition to follow given when then format

Briefly describe the issue you have solved or implemented with this pull request. If the PR contains multiple issues, use a bullet list.

Causes (Optional)

Briefly describe the causes behind the issues. This could be helpful to understand the adopted solutions behind some nasty bugs or complex issues.

Solutions

Briefly describe the solutions you have implemented for the issues explained above.

Dependencies (Optional)

If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

New member messaging test for critical flow

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Notes (Optional)

Specify here any other facts that you think are important for this issue.

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)


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.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

codecov bot commented Aug 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.66%. Comparing base (6f1e514) to head (12cdf50).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4182   +/-   ##
========================================
  Coverage    47.66%   47.66%           
========================================
  Files          510      510           
  Lines        17463    17463           
  Branches      2868     2868           
========================================
  Hits          8324     8324           
  Misses        8279     8279           
  Partials       860      860           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f1e514...12cdf50. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@emmaoke-w emmaoke-w marked this pull request as draft August 14, 2025 07:37
@emmaoke-w emmaoke-w marked this pull request as ready for review August 14, 2025 14:33
Copy link
Collaborator

@CinnamonNinja CinnamonNinja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Left 2 minor comments.


@Suppress("CyclomaticComplexMethod", "LongMethod")
@Test
fun givenUserJoinsNewTeam_whenMessagingAndMentionedInGroup_thenReceivesMessagesAndMentions() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this name seems to be very long. can we shorten it maybe to something like MessagingAndMentionTestNewUser or similar?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This naming convention was proposed by Yamil.

}

pages.conversationViewPage.apply {
typeMessageInInputField("Hello Team Owner")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make sense to add a step here before to check if new conversation is created and visible in foreground, before you try to send a message? Sometimes this can take a bit and I am not sure how long the test would wait before it would try to send this message.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Step added as proposed. Thanks

Copy link

@emmaoke-w emmaoke-w added this pull request to the merge queue Aug 15, 2025
Merged via the queue into develop with commit 1c38223 Aug 15, 2025
13 of 15 checks passed
@emmaoke-w emmaoke-w deleted the test/WPB-19322-new-member-messaging-test branch August 15, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants