Skip to content
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

[Tests] Create UI tests on the Chat view using JUnit or Robolectric #703

Open
12 tasks
tomastiminskas opened this issue Jan 17, 2024 · 4 comments
Open
12 tasks
Assignees

Comments

@tomastiminskas
Copy link
Collaborator

tomastiminskas commented Jan 17, 2024

Context

The Chat view is one of the most important views of the Sphinx app. UI Test coverage needs to be added in this view.

Files involved:
ChatContactFragment.kt
ChatTribeFragment.kt
ChatFragment.kt
fragment_chat_contact.xml
fragment_chat_tribe.xml
MessageListAdapter.kt

The goal is to test some basic UI interactions in the Chat view and their expected results.

  1. Add any needed configuration for the selected test tool (JUnit, Robolectric, UI Automator, etc).
  2. Implement the following test cases
  • Tapping on image message should open full screen image viewer
  • Tapping on image on payment message row should do nothing (instead of opening full screen image viewer)
  • Tapping on video message should open full screen video player
  • Tapping on + button on bottom bar should open bottom menu animated
  • Swiping left on text message should show replying view above the message field bottom bar
  • Tapping on AUDIO or VIDEO buttons on Call message row should join Jitsi call
  • Long pressing any message row should show message menu
  • When not at very bottom of the chat content, when tapping on ARROW DOWN button on right bottom corner should scroll chat to the bottom
  • Tapping on bell icon on top bar should show notification about mute/unmute chat state and change icon to crossed out bell
  • Tapping on the message field should expand the keyboard and set focus on the field
  • Typing in the field should expand field height to show entire text
  • Message field should be limited to 1000 characters when typing
@The-Fuse
Copy link

@tomastiminskas i can do this, can you please assign me?

@tomsmith8
Copy link

Hey @The-Fuse , are you on Sphinx Bounties? https://community.sphinx.chat/bounties

Let me know if not and I can help you onboard.

@MathRoda
Copy link

MathRoda commented Feb 2, 2024

Hey @tomsmith8 i'll take on this. Assign it to me.

@MathRoda
Copy link

MathRoda commented Feb 9, 2024

To keep everyone updated. There's a critical issue regarding hilt when it come to instrumented testing in the project.
@tomastiminskas and I trying to figure out how to solve this issue so it might take some time.

What we found so far is this issue which is similar to ours has been reported at dagger repo before
google/dagger#3692

Once we figure it out we will keep you posted.

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

No branches or pull requests

4 participants