-
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.
feat: [DHIS2-16764][DHIS2-16759][DHIS2-16781] Changelog (#3540)
Minor-contributions-by: Joakim Storløkken Melseth <joakim@dhis2.org>
- Loading branch information
1 parent
fa59ee8
commit fa54ee4
Showing
46 changed files
with
1,145 additions
and
71 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
cypress/e2e/WidgetsForEnrollmentPages/WidgetChangelog/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,46 @@ | ||
import { Given, Then, When } from '@badeball/cypress-cucumber-preprocessor'; | ||
|
||
Given('you select view changelog in the event overflow button', () => { | ||
cy.get('[data-test="widget-event-edit-overflow-button"]') | ||
.click(); | ||
|
||
cy.get('[data-test="event-overflow-view-changelog"] > a') | ||
.click({ force: true }); | ||
}); | ||
|
||
Then('the changelog modal should be visible', () => { | ||
cy.get('[data-test="changelog-modal"]') | ||
.should('be.visible'); | ||
}); | ||
|
||
Then(/^the number of changelog table rows should be (.*)$/, (numberOfRows) => { | ||
cy.get('[data-test="changelog-data-table-body"]') | ||
.within(() => { | ||
cy.get('tr') | ||
.should('have.length', numberOfRows); | ||
}); | ||
}); | ||
|
||
When(/^you change the page size to (.*)$/, (pageSize) => { | ||
cy.get('[data-test="changelog-pagination-pagesize-select"]') | ||
.click(); | ||
|
||
cy.get('[data-test="dhis2-uicore-select-menu-menuwrapper"]') | ||
.contains(pageSize) | ||
.click(); | ||
}); | ||
|
||
Then('the changelog modal should contain data', () => { | ||
cy.get('[data-test="changelog-data-table-body"]') | ||
.should('be.visible'); | ||
}); | ||
|
||
When('you move to the next page', () => { | ||
cy.get('[data-test="changelog-pagination-page-next"]') | ||
.click(); | ||
}); | ||
|
||
Then('the table footer should display page 2', () => { | ||
cy.get('[data-test="changelog-pagination-summary"]') | ||
.contains('Page 2'); | ||
}); |
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
Oops, something went wrong.