status-mobile/test/appium
Icaro Motta e8556a9abf
Show AC unread indicator with counter and seen state color (#15304)
- Display Activity Center unread badge with the unread counter.
- Use the new seen state stored in `status-go` to change the color of the
  notification.
- Performance: split the `top-nav` component into left and right section
  components and render the unread indicator in a separate component to not
  trigger the re-render of the entire `top-nav` (as was before).
  
Fixes https://github.com/status-im/status-mobile/issues/14851

Demo: https://user-images.githubusercontent.com/46027/224299978-770dd5f1-302b-4375-af2b-3cd181ffdc9d.webm

Notes
=====

- Fix/improve: `quo/counter` displayed `NaN` to the user if the input value was
  an empty string.
- In Figma, there's a border around the unread indicator. I didn't implement
  this because the ideal solution IMO involves changing the `quo/counter`
  component a little bit because the width of the component varies according to
  the content displayed (1, 9, 99, 100, etc) and I wanted to the right thing in
  a separate PR.

Design notes
============

There's an ongoing conversation with the Design team to decide what to do with
the gray indicator on top of the bell icon, since there's little contrast when
it's is in the `seen` state.

Platforms
=========

- Android
- iOS

Steps to test
=============

- Open Status
- Receive one or more notifications in the Home screen and check the unread
  indicator is blue and has a counter.
- Open the AC and close it, notice the unread indicator is now in the `seen`
  state. You can close the app and re-open and the state is persisted.
- Mark notifications as read/unread at will, check the unread counter is
  correct.
2023-03-15 12:41:34 -03:00
..
docker rename status-react to status-mobile 2022-07-17 14:46:16 +02:00
support e2e: fix failures 2023-03-09 12:06:24 +01:00
tests Swipe gestures for Activity Center notifications with CTA (#15284) 2023-03-14 12:34:13 -03:00
views Show AC unread indicator with counter and seen state color (#15304) 2023-03-15 12:41:34 -03:00
README.md e2e: tx users 2022-03-07 22:17:39 +01:00
pytest.ini e2e: activity centre 2022-12-29 14:49:35 +01:00
requirements.txt Updated pytest and pytest-xdist versions 2023-02-17 12:28:43 +01:00

README.md

E2E tests requirements

Environment variables

  • WEB3_INFURA_PROJECT_ID
  • ETHERSCAN_API_KEY
  1. If running on SauceLab emulators:
  • SAUCE_USERNAME
  • SAUCE_ACCESS_KEY
  1. If running with Testrail (--testrail_report=True param):
  • TESTRAIL_PASS
  • TESTRAIL_USER

Other

Userdata is stored in tests.users module (test/appium/tests/users.py, which is not committed to repo).

So to launch e2e you need to copy users.py to test/appium/tests/ to prevent ImportError

If you are external contributor, you can contact us at error-reports@status.im to get users.py

More info on local setup for e2e can be found here