Btw, I checked the OMRS 3.X demo site (using the admin account) but couldn’t find the Clinical Visit page. @jayasanka, could you please help me on that.
Hi @jayasanka, I need to clarify few things about E2E tests.
When testing, do we need to check each and everything inside a component when verifying that component is loaded.
For example, let’s say I want to check whether this table is loaded properly. For that, is it okay to check only the table headers(Last Completed, Form Name)?
We don’t need to go through all elements. just checking one or two unique properties would be enough. Check other scenarios on the same feature file, you might be able to get an idea.
I have another problem😅. I noticed that when we click most of the forms, it redirects to an older version of forms(probably 2.X) instead of opening the sidebar in 3.x.
So I used the ‘Record Vitals’ form which opens in the sidebar.
However after saving it, it requires a manual reload to load the new form details on the forms list.
Even after doing that, if we click the form we created it redirects to the older version again.
I’m not sure about the fact that forms link to the 2.x UI. @jdick, @grace, @dkibet ?
We are in the process of fixing the issue where a reload is needed after submitting data. This is the work that @dkigen has been doing with SWR. We should probably go through the E2E tests to get rid of unnecessary reloads sometime soon (but not yet, the SWR work is not yet totally complete).