medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
469 stars 218 forks source link

chore(#9516): e2e training cards #9532

Closed kapelo closed 1 month ago

kapelo commented 1 month ago

Description

https://github.com/medic/cht-core/issues/9516

Code review checklist

Compose URLs

If Build CI hasn't passed, these may 404:

License

The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.

kapelo commented 1 month ago

Hi @Benmuiruri, two tests seem to be failing in your branch for mobile and doesn't fail on master. Can you take a look at this? cc: @latin-panda

tc fail
Benmuiruri commented 1 month ago

@kapelo The error was because of the navigation change we have introduced.

L134 No longer works, when you try to navigate to Reports when the training card is open, it shows the "Leave training".

Let me use some of the logic from your PR to fix the updated behavior.

(PS - you might get some conflicts since I will be fixing the same file)