-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into eh/feat/DHIS2-16262…
…_CustomEnrollmentOverviewSchema # Conflicts: # i18n/en.pot # src/core_modules/capture-core/components/Pages/EnrollmentEditEvent/EnrollmentEditEventPage.component.js # src/core_modules/capture-core/components/Pages/EnrollmentEditEvent/EnrollmentEditEventPage.container.js # src/core_modules/capture-core/components/Pages/EnrollmentEditEvent/EnrollmentEditEventPage.types.js # src/core_modules/capture-core/components/WidgetEventEdit/WidgetEventEdit.container.js # src/core_modules/capture-core/components/WidgetEventEdit/widgetEventEdit.types.js
- Loading branch information
Showing
117 changed files
with
4,712 additions
and
3,106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
cypress/e2e/WidgetsForEnrollmentPages/WidgetAssignee/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { When, Then } from '@badeball/cypress-cucumber-preprocessor'; | ||
|
||
When('you assign the user Geetha in the view mode', () => { | ||
cy.get('[data-test="widget-assignee"]').within(() => { | ||
cy.get('[data-test="widget-assignee-assign"]').click(); | ||
cy.get('[data-test="capture-ui-input"]').type('Geetha'); | ||
cy.contains('Geetha Alwan').click(); | ||
cy.get('[data-test="widget-assignee-save"]').click(); | ||
}); | ||
}); | ||
|
||
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) | ||
.click(); | ||
|
||
cy.get('[data-test="widget-assignee"]').within(() => { | ||
cy.get('[data-test="widget-assignee-edit"]').click(); | ||
cy.get('[data-test="dhis2-uicore-chip-remove"]').click(); | ||
cy.get('[data-test="capture-ui-input"]').type('Tracker demo'); | ||
cy.contains('Tracker demo User').click(); | ||
cy.get('[data-test="widget-assignee-save"]').click(); | ||
}); | ||
}); | ||
|
||
When('you remove the assigned user', () => { | ||
cy.get('[data-test="widget-assignee"]').within(() => { | ||
cy.get('[data-test="widget-assignee-edit"]').click(); | ||
cy.get('[data-test="dhis2-uicore-chip-remove"]').click(); | ||
cy.get('[data-test="widget-assignee-save"]').click(); | ||
}); | ||
}); | ||
|
||
Then('the event has the user Geetha Alwan assigned', () => { | ||
cy.get('[data-test="widget-assignee"]').within(() => { | ||
cy.get('[data-test="widget-contents"]').contains('Geetha Alwan').should('exist'); | ||
}); | ||
}); | ||
|
||
Then('the event has the user Tracker demo User assigned', () => { | ||
cy.get('[data-test="widget-assignee"]').within(() => { | ||
cy.get('[data-test="widget-contents"]').contains('Tracker demo User').should('exist'); | ||
}); | ||
}); | ||
|
||
Then('the event has no assignd user', () => { | ||
cy.get('[data-test="widget-assignee"]').within(() => { | ||
cy.get('[data-test="widget-contents"]').contains('No one is assigned to this event').should('exist'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.