Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/dhis2/capture-app into hv…
Browse files Browse the repository at this point in the history
…/feat/DHIS2-18328_GeometryScheduledAtAndOccuredAtInChangelog
  • Loading branch information
henrikmv committed Nov 29, 2024
2 parents 5d1f81d + 0e2c367 commit 7b31208
Show file tree
Hide file tree
Showing 58 changed files with 3,156 additions and 2,858 deletions.
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
# [101.18.0](https://github.com/dhis2/capture-app/compare/v101.17.0...v101.18.0) (2024-11-28)


### Features

* [DHIS2-16337] Org unit in view event page ([#3882](https://github.com/dhis2/capture-app/issues/3882)) ([c605e82](https://github.com/dhis2/capture-app/commit/c605e828622aa9f9b0c10f96359ba1b037c8e0ee))

# [101.17.0](https://github.com/dhis2/capture-app/compare/v101.16.7...v101.17.0) (2024-11-25)


### Features

* [DHIS2-15463] Use dhis2 ui calendarInput component in working list ([#3712](https://github.com/dhis2/capture-app/issues/3712)) ([5f27455](https://github.com/dhis2/capture-app/commit/5f27455b136d6d994adea0788bf2d0683dfe5d06))

## [101.16.7](https://github.com/dhis2/capture-app/compare/v101.16.6...v101.16.7) (2024-11-25)


### Bug Fixes

* [DHIS2-16801] events scheduled for today's date not showing today ([#3856](https://github.com/dhis2/capture-app/issues/3856)) ([d63e124](https://github.com/dhis2/capture-app/commit/d63e124d1c0702898b453be8cfbdd0a5f4620ba5))

## [101.16.6](https://github.com/dhis2/capture-app/compare/v101.16.5...v101.16.6) (2024-11-25)


### Bug Fixes

* [DHIS2-17519] app crashing when opening new event from view event ([#3781](https://github.com/dhis2/capture-app/issues/3781)) ([93366ef](https://github.com/dhis2/capture-app/commit/93366ef504210cc9aa746f7d10a4cc7d6188586d))
* [DHIS2-18150] user has to click out of range filter for update button to trigger ([#3855](https://github.com/dhis2/capture-app/issues/3855)) ([f70b205](https://github.com/dhis2/capture-app/commit/f70b2053f753388e994c89698677821fd8032f79))

## [101.16.5](https://github.com/dhis2/capture-app/compare/v101.16.4...v101.16.5) (2024-11-24)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([3098faf](https://github.com/dhis2/capture-app/commit/3098faf8b73dbfc0d894535cbdfd5539e80a24fe))

## [101.16.4](https://github.com/dhis2/capture-app/compare/v101.16.3...v101.16.4) (2024-11-20)


### Bug Fixes

* [DHIS2-18019] related stages UI tweaks ([#3872](https://github.com/dhis2/capture-app/issues/3872)) ([7ea2240](https://github.com/dhis2/capture-app/commit/7ea2240b68408a0c4e8db624093c058f2b416584))

## [101.16.3](https://github.com/dhis2/capture-app/compare/v101.16.2...v101.16.3) (2024-11-20)


### Bug Fixes

* [DHIS2-18444] stabilize possible duplicate modal cypress test ([#3886](https://github.com/dhis2/capture-app/issues/3886)) ([5b5b477](https://github.com/dhis2/capture-app/commit/5b5b477ed3a26c7eb04c4966802769fe973e1631))

## [101.16.2](https://github.com/dhis2/capture-app/compare/v101.16.1...v101.16.2) (2024-11-19)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ Given(/^you land on the enrollment event page with selected (.*) by having typed
When(/^the user clicks on the edit button/, () =>
cy
.get('[data-test="widget-enrollment-event"]')
.find('[data-test="dhis2-uicore-button"]')
.eq(1)
.find('[data-test="widget-enrollment-event-edit-button"]')
.click(),
);

Expand Down Expand Up @@ -208,8 +207,7 @@ And('you open the Birth stage event', () => {

Then('the edit button should be disabled', () => {
cy.get('[data-test="widget-enrollment-event"]')
.find('[data-test="dhis2-uicore-button"]')
.eq(1)
.find('[data-test="widget-enrollment-event-edit-button"]')
.should('be.disabled');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ When('the user clicks the first second antenatal care visit event', () => {
});

When(/^the user clicks the "Back to all stages and events" button/, () =>
cy
.get('[data-test="widget-enrollment-event"]')
.find('[data-test="dhis2-uicore-button"]')
.eq(0)
cy.get('[data-test="enrollment-edit-event-back-button"]')
.click(),
);

Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/NewPage/NewPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,14 @@ And('you fill the WHO RMNCH program registration form with its required unique v
});

And('you fill the WHO RMNCH program registration form with its required values', () => {
cy.get('[data-test="capture-ui-input"]')
.eq(2)
.type('Ava');

cy.get('[data-test="capture-ui-input"]')
.eq(3)
.type('Didriksson');

cy.get('[data-test="capture-ui-input"]')
.eq(2)
.type('Ava');

cy.get('[data-test="capture-ui-input"]')
.eq(9)
.type('1985-10-01')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/TopBarActions/TopBarActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Given(/^you land on a enrollment page domain by having typed (.*)$/, (url) => {
});

When(/^the user clicks on the edit button/, () =>
cy.get('[data-test="widget-enrollment-event"]').find('[data-test="dhis2-uicore-button"]').eq(1).click(),
cy.get('[data-test="widget-enrollment-event"]').find('[data-test="widget-enrollment-event-edit-button"]').click(),
);

When('the user clicks the arrow button to see the dropdown', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ When('you assign the user Geetha in the view mode', () => {
When('you assign the user Tracker demo User in the edit mode', () => {
cy
.get('[data-test="widget-enrollment-event"]')
.find('[data-test="dhis2-uicore-button"]')
.eq(1)
.find('[data-test="widget-enrollment-event-edit-button"]')
.click();

cy.get('[data-test="widget-assignee"]').within(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Then('the enrollment widget should be loaded', () => {
});

When('you click edit mode', () => {
cy.contains('[data-test="dhis2-uicore-button"]', 'Edit event')
cy
.get('[data-test="widget-enrollment-event"]')
.find('[data-test="widget-enrollment-event-edit-button"]')
.click();
cy.get('[data-test="widget-enrollment-event-edit"]').should('exist');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ Then('you can assign a user when scheduling the event', () => {
});

When(/^the user clicks the "Back to all stages and events" button/, () =>
cy
.get('[data-test="widget-enrollment-event"]')
.contains('Back to all stages and events')
cy.get('[data-test="enrollment-edit-event-back-button"]')
.click(),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ Then(/^the scope selector list contains the text (.*)$/, (name) => {
});

When(/^the user clicks the "Back to all stages and events" button/, () =>
cy
.get('[data-test="widget-enrollment-event"]')
.contains('Back to all stages and events')
cy.get('[data-test="enrollment-edit-event-back-button"]')
.click(),
);

Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ Then('the list should display data ordered descendingly by report date', () => {
.click();

cy.get('input[placeholder="From"]')
.type(`${lastYear}-01-01`);
.type(`${lastYear}-01-01`).blur();

cy.get('input[placeholder="To"]').click();
cy.get('input[placeholder="To"]').click().blur();

cy.contains('Update')
.click({ force: true });
Expand Down Expand Up @@ -399,10 +399,10 @@ When('you set the date of admission filter', () => {
cy.get('input[type="text"]')
.then(($elements) => {
cy.wrap($elements[0])
.type('2018-01-01');
.type('2018-01-01').blur();

cy.wrap($elements[1])
.type('2018-12-31');
.type('2018-12-31').blur();
});

cy.contains('Update')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Feature: User facing tests for bulk actions on Tracked Entity working lists
When you confirm 3 active enrollments successfully
Then the bulk complete enrollments modal should close

#DHIS2-18447
@skip
Scenario: the user should be able to bulk complete enrollments without completing events
Given you open the main page with Ngelehun and Malaria Case diagnosis context
And you select row number 1
Expand All @@ -61,6 +63,8 @@ Feature: User facing tests for bulk actions on Tracked Entity working lists
When you confirm 1 active enrollment without completing events successfully
Then the bulk complete enrollments modal should close

#DHIS2-18447
@skip
Scenario: the user should be able to bulk delete enrollments
Given you open the main page with Ngelehun and Malaria Case diagnosis context
And you select the first 3 rows
Expand All @@ -69,6 +73,8 @@ Feature: User facing tests for bulk actions on Tracked Entity working lists
When you confirm deleting 3 enrollments
Then the bulk delete enrollments modal should close

#DHIS2-18447
@skip
Scenario: the user should be able to bulk delete only active enrollments
Given you open the main page with Ngelehun and Malaria Case diagnosis context
And you select the first 3 rows
Expand Down
32 changes: 18 additions & 14 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,9 @@ msgstr "Loading"
msgid "An error occurred while loading the form"
msgstr "An error occurred while loading the form"

msgid "Back to all stages and events"
msgstr "Back to all stages and events"

msgid "Possible duplicates found"
msgstr "Possible duplicates found"

Expand Down Expand Up @@ -1288,6 +1291,9 @@ msgstr "Warning"
msgid "stage not found in rules execution"
msgstr "stage not found in rules execution"

msgid "Please provide an valid organisation unit"
msgstr "Please provide an valid organisation unit"

msgid "Delete event"
msgstr "Delete event"

Expand All @@ -1306,9 +1312,6 @@ msgstr "Event completed"
msgid "The event cannot be edited after it has been completed"
msgstr "The event cannot be edited after it has been completed"

msgid "Back to all stages and events"
msgstr "Back to all stages and events"

msgid "Notes about this event"
msgstr "Notes about this event"

Expand Down Expand Up @@ -1508,11 +1511,21 @@ msgstr "{{ scheduledEvents }} scheduled"
msgid "Stages and Events"
msgstr "Stages and Events"

msgid "View linked event"
msgstr "View linked event"

msgid "An error occurred while loading the widget."
msgstr "An error occurred while loading the widget."

msgid "View linked event"
msgstr "View linked event"
msgid "Linked event"
msgstr "Linked event"

msgid ""
"This {{stageName}} event is linked to a {{linkedStageName}} event. Review "
"the linked event details before entering data below"
msgstr ""
"This {{stageName}} event is linked to a {{linkedStageName}} event. Review "
"the linked event details before entering data below"

msgid "Scheduled"
msgstr "Scheduled"
Expand Down Expand Up @@ -1668,15 +1681,6 @@ msgstr "Follow up"
msgid "Choose a program stage to filter by {{label}}"
msgstr "Choose a program stage to filter by {{label}}"

msgid "Active enrollments"
msgstr "Active enrollments"

msgid "Completed enrollments"
msgstr "Completed enrollments"

msgid "Cancelled enrollments"
msgstr "Cancelled enrollments"

msgid ""
"Some enrollments were completed successfully, but there was an error while "
"completing the rest. Please see the details below."
Expand Down
Loading

0 comments on commit 7b31208

Please sign in to comment.