Skip to content

Commit

Permalink
chore: use 2025 db dump for e2e tests (#43)
Browse files Browse the repository at this point in the history
* chore: use 2025 db dump for e2e tests

* chore: stop using admin user in e2e tests

* chore: adjust fixtures to 2025 data

* chore: stop writing fixtures during the e2e test

* chore: update fixture

* chore: use latest db dump

* chore: add quotes to strings in .env.e2e file

* chore: log response in test output

* chore: stop logging response in e2e test

* chore: update db dump url and fixtures
  • Loading branch information
HendrikThePendric authored Jan 10, 2025
1 parent e5c5e62 commit b3db445
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6,743 deletions.
8 changes: 3 additions & 5 deletions .env.e2e
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
DHIS2_IMAGE="dhis2/core:2.41"
DHIS2_DB_DUMP_URL=https://github.com/dhis2/push-analytics/releases/download/1.0.0/dump.sql.gz

DHIS2_DB_DUMP_URL="https://github.com/dhis2/push-analytics/releases/download/1.0.1/PUSH_ANALYTICS_41_2025_DUMP_MEASLES_TWEAK.sql.gz"
FAKESMTP_AUTHENTICATION_USERNAME=myuser
FAKESMTP_AUTHENTICATION_PASSWORD=mysecretpassword
FAKESMTP_PORT=8030
FAKESMTP_SERVER_PORT=8031
FAKESMTP_MANAGEMENT_SERVER_PORT=8032

HOST=http://push-analytics
HOST="http://push-analytics"
PORT=1337
DHIS2_CORE_URL=http://web:8080
DHIS2_CORE_URL="http://web:8080"
DHIS2_CORE_MAJOR_VERSION=41
DHIS2_CORE_ADMIN_USERNAME=push_analytics_admin
DHIS2_CORE_ADMIN_PASSWORD=Test123!
Expand Down
1,472 changes: 1 addition & 1,471 deletions e2e/__fixtures__/KQVXh5tlzW2_test_user_bo.txt

Large diffs are not rendered by default.

968 changes: 1 addition & 967 deletions e2e/__fixtures__/KQVXh5tlzW2_test_user_bonthe.txt

Large diffs are not rendered by default.

1,578 changes: 1 addition & 1,577 deletions e2e/__fixtures__/KQVXh5tlzW2_test_user_national.txt

Large diffs are not rendered by default.

1,578 changes: 1 addition & 1,577 deletions e2e/__fixtures__/KQVXh5tlzW2_test_user_national_nb.txt

Large diffs are not rendered by default.

1,144 changes: 0 additions & 1,144 deletions e2e/__fixtures__/YN2Dju6t32Z_admin.txt

This file was deleted.

4 changes: 4 additions & 0 deletions e2e/__fixtures__/ceneQPMhemM_test_user_national.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions e2e/dashboardItemTypes.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ describe('converting all types of dashboard items', () => {

test(`produces the expected HTML for a dashboard with all dashboard item types`, async () => {
const req = request(url)
const dashboardId = 'YN2Dju6t32Z'
const username = 'admin'
const dashboardId = 'ceneQPMhemM'
const username = 'test_user_national'
const locale = 'en'
const filePath = path.resolve(fixturesPath, `${dashboardId}_${username}.txt`)
const expectedHtml = fs.readFileSync(filePath).toString()
Expand Down

0 comments on commit b3db445

Please sign in to comment.