-
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.
fix: [DHIS2-15633] Change comment to note (#3549)
Co-authored-by: Joakim Storløkken Melseth <[email protected]>
- Loading branch information
Showing
64 changed files
with
339 additions
and
341 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
21 changes: 0 additions & 21 deletions
21
cypress/e2e/WidgetsForEnrollmentPages/WidgetEnrollmentComment/index.js
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
cypress/e2e/WidgetsForEnrollmentPages/WidgetEnrollmentNote/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,21 @@ | ||
import { When, Then } from '@badeball/cypress-cucumber-preprocessor'; | ||
|
||
Then('the stages and events should be loaded', () => { | ||
cy.contains('Stages and Events').should('exist'); | ||
}); | ||
|
||
When(/^you fill in the note: (.*)$/, (note) => { | ||
cy.get('[data-test="enrollment-note-widget"]').within(() => { | ||
cy.get('[data-test="note-textfield"]').type(note); | ||
cy.wait(100); | ||
|
||
cy.get('[data-test="add-note-btn"]').should('exist'); | ||
cy.get('[data-test="add-note-btn"]').click(); | ||
}); | ||
}); | ||
|
||
Then(/^list should contain the new note: (.*)$/, (note) => { | ||
cy.get('[data-test="enrollment-note-widget"]').within(() => { | ||
cy.get('[data-test="note-item"]').contains(note).should('exist'); | ||
}); | ||
}); |
27 changes: 0 additions & 27 deletions
27
cypress/e2e/WidgetsForEnrollmentPages/WidgetEventComment/index.js
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
cypress/e2e/WidgetsForEnrollmentPages/WidgetEventNote/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,27 @@ | ||
import { When, Then } from '@badeball/cypress-cucumber-preprocessor'; | ||
|
||
Then('the enrollment widget should be loaded', () => { | ||
cy.contains('The enrollment event data could not be found').should('not.exist'); | ||
}); | ||
|
||
When('you click edit mode', () => { | ||
cy.contains('[data-test="dhis2-uicore-button"]', 'Edit event') | ||
.click(); | ||
cy.contains('Enrollment: Edit Event').should('exist'); | ||
}); | ||
|
||
When(/^you fill in the note: (.*)$/, (note) => { | ||
cy.get('[data-test="event-note-widget"]').within(() => { | ||
cy.get('[data-test="note-textfield"]').type(note); | ||
cy.wait(100); | ||
|
||
cy.get('[data-test="add-note-btn"]').should('exist'); | ||
cy.get('[data-test="add-note-btn"]').click(); | ||
}); | ||
}); | ||
|
||
Then(/^list should contain the new note: (.*)$/, (note) => { | ||
cy.get('[data-test="event-note-widget"]').within(() => { | ||
cy.get('[data-test="note-item"]').contains(note).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
2 changes: 1 addition & 1 deletion
2
.../WidgetsForEnrollmentPages/WidgetsForEnrollmentEditEvent/WidgetsForEnrollmentEditEvent.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import '../sharedSteps'; | ||
import '../WidgetEnrollment'; | ||
import '../WidgetProfile'; | ||
import '../WidgetEventComment'; | ||
import '../WidgetEventNote'; | ||
import '../WidgetAssignee'; | ||
import '../WidgetChangelog'; | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.