kumuditha
(Kumuditha Karunarathna)
December 30, 2021, 10:56am
1
Hi everyone,
Since the openmrs-spa.org is the old version, we are trying to migrate tests to the dev3.openmrs server.
Currently, the dev3.openmrs server is not working.
The demo server works but some components are missing init.
In 3. x dashboard all tests fail because there is a problem when login into the current server (openmrs-spa.org ).
In our tests, we used the “spa_user” account but it doesn’t work at the moment.
So at the moment, we are unable to fix the failing tests and run tests.
Could someone please let us know whether this is being fixed or is there another server that we can use?
Thank you.
cc: @grace , @jdick , @kdaud , @christine
team: @jayasanka , @heshan , @piumal1999 , @pasindur2 , @anjisvj , @kumuditha
2 Likes
kdaud
(Kakumirizi Daud)
December 30, 2021, 12:25pm
2
Since the demo server is down, we would switch tests to run on o3.openmrs.org/spa though it has some issues.
have you noticed those specific components?
I read of @grace ’s comment on the subject and am not sure how far with stabilizing the server has gone.
You’re most welcome; thanks for the reminder re. the Wiki page! Updated now.
FWIW though, I have to admit that our new o3.openmrs.org demo environment is not quite as feature-current as our previous environment. We’re working to fix that. You can be sure that once that’s fixed I’ll announce this loudly here on Talk
(CC @ibacher )
cc: @dkayiwa @sharif @ibacher
1 Like
piumal1999
(Piumal Rathnayake)
December 30, 2021, 2:40pm
3
Thanks for the response @kdaud
Here are some issues I noticed:
The form widget is not loading and the forms list is empty. In the previous demo server, there was a list of forms that we can select and fill.
Unable to add allergies using the allergies UI. Throws a 500 Internal server error. Probably due to the issue with the form widget.
Login UI seems outdated. The Login E2E tests fail because the labels are changed.
sharif
(Sharif Magembe)
January 2, 2022, 8:21am
4
Thanks @kdaud @piumal1999 can we create the ticket for this and have them fixed. Do you mind sharing the ticket url here .
kumuditha
(Kumuditha Karunarathna)
January 3, 2022, 5:26pm
5
Please find the PR for Migrating the tests to the o3.openmrs demo server here.
Note : This PR migrates all tests to the o3.openmrs demo server.
Tests will still fail for the moment. Fixes will be sent by the members assigned to each test.
openmrs:master
← kumuditha-udayanga:feature-migrate-tests
opened 04:59PM - 03 Jan 22 UTC
### Purpose
The purpose of this PR is to fix [O3-989](https://issues.openmrs.or… g/browse/O3-989).
### Approach
- Update `cypress.json`.
- Update `commands.js`
Note: This PR migrates all tests to the o3.openmrs demo server. Tests will still fail for the moment. Fixes will be sent by members assigned to each test.
2 Likes
kumuditha
(Kumuditha Karunarathna)
January 3, 2022, 6:03pm
6
Members assigned for fixing tests:
4 Likes
jayasanka
(Jayasanka Weerasinghe)
January 4, 2022, 9:44am
7
Merged the PR. Thanks @kumuditha !
1 Like
piumal1999
(Piumal Rathnayake)
January 7, 2022, 8:14am
8
Update:
In the 2022-01-05T18:30:00Z micro frontend squad call, we had a discussion about the failing 3.x E2E tests and the demo servers. According to that, the tests should be run against the dev3 environment. There was a suggesstion to run the tests against a docker image instead of an environment. It was suggested to review this docker image . So we’ll have to revert the previous migration commits.
Related slack thread:
https://openmrs.slack.com/archives/C02Q7G0A5PE/p1641484016002200
kdaud
(Kakumirizi Daud)
January 7, 2022, 10:10am
9
@piumal1999 are you meaning we revert the commit at
openmrs:master
← kumuditha-udayanga:feature-migrate-tests
opened 04:59PM - 03 Jan 22 UTC
### Purpose
The purpose of this PR is to fix [O3-989](https://issues.openmrs.or… g/browse/O3-989).
### Approach
- Update `cypress.json`.
- Update `commands.js`
Note: This PR migrates all tests to the o3.openmrs demo server. Tests will still fail for the moment. Fixes will be sent by members assigned to each test.
?
piumal1999
(Piumal Rathnayake)
January 9, 2022, 2:06pm
10
Yeah.
I think we’ll have to revert #303 as well. (However #303 contains the fix for github workflow working directory issue. So we’ll have to fix that part later)
cc: @jayasanka
kdaud
(Kakumirizi Daud)
January 9, 2022, 2:14pm
11
@piumal1999 have done the needful.
You need to adjust the login credentials of the demo server within tsconfig.json .
1 Like
kumuditha
(Kumuditha Karunarathna)
January 19, 2022, 2:23am
12
openmrs:master
← kumuditha-udayanga:fix-paths
opened 02:15AM - 19 Jan 22 UTC
### Purpose
The purpose of this PR is to fix [O3-1017](https://issues.openmrs.o… rg/browse/O3-1017).
### Approach
- Update file paths of 3. x test workflow files.
Hi all, this PR will update the paths of the 3.X test workflows.
kdaud
(Kakumirizi Daud)
January 19, 2022, 2:35am
13
@kumuditha have put a comment on github.
1 Like
piumal1999
(Piumal Rathnayake)
January 19, 2022, 12:52pm
15
Created the pull request for fixing the Clinical Visit E2E test. @jayasanka @kdaud Could you please enable the workflow to test the Pull request?
openmrs:master
← Piumal1999:O3-984
opened 12:44PM - 19 Jan 22 UTC
## Purpose
The purpose of this PR is to fix [O3-984](https://issues.openmrs.org… /browse/O3-984)
## Goals
Fix the failing clinical visit tests
## Approach
- Updated the Clinical Visit E2E test
- Increased the default timeout to 120 sec
- It takes around 115 seconds to load the patient dashboard if we reload the page during a test. In the form entry and programs UI, the new data doesn't appear unless we refresh it. So it's not possible to remove the reload function at the moment.
- Also the test consumes around 850MB when running, because it downloads all the modules before displaying the UI (due to the offline mode).
## Screenshots
![image](https://user-images.githubusercontent.com/27498587/150125932-bc562e70-0bbc-4e10-8122-5f53a0e1ad33.png)
2 Likes
kumuditha
(Kumuditha Karunarathna)
January 25, 2022, 4:11pm
16
Created a pull request on running 3.x patient search E2E test on a dockerized environment.
openmrs:master
← kumuditha-udayanga:docker
opened 04:04PM - 25 Jan 22 UTC
### Purpose
The purpose of this PR is to fix [O3-872](https://issues.openmrs.or… g/browse/O3-872).
### Approach
- Run 3.x patient search E2E test in a dockerized environment
2 Likes
sumedha
(Sumedha Karunarathna)
February 7, 2022, 3:39pm
17
Hey guys, there are some issues with the user setting test which I found while running the user setting test.
The logout button doesn’t appear in the UI sometimes(random occurrences) which causes the test to fail
After clicking the logout button it doesn’t redirect back to the login page(random occurrences)
2 Likes
kdaud
(Kakumirizi Daud)
February 8, 2022, 8:17am
18
are you able to reproduce this on the server?
2 Likes
sumedha
(Sumedha Karunarathna)
February 8, 2022, 12:07pm
19
I got this error on the dockerized version.
sumedha
(Sumedha Karunarathna)
February 9, 2022, 8:31pm
20
Created a pull request on running 3.x user settings E2E test on a dockerized environment.
openmrs:dockerize-3.x
← 99sumedha:dockerize-3.x
opened 08:21PM - 09 Feb 22 UTC
The purpose of this PR is to fix [O3-1057](https://issues.openmrs.org/browse/O3-… 1057).
Approach
Run 3.x user settings E2E test in a dockerized environment.
Removed location Pharmacy and Replace Inpatient Ward
2 Likes