Skip to content

Commit

Permalink
chore: lowercase unit
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Apr 8, 2024
1 parent 76b8e28 commit 2dd81ae
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/common/view/add_a_FILTERTYPE_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ When('I add a {string} filter', dimensionType => {
// select an item in the modal
if (dimensionType === 'Period') {
cy.get(unselectedItemsSel).contains(PERIOD).dblclick()
} else if (dimensionType === 'Organisation Unit') {
} else if (dimensionType === 'Organisation unit') {
cy.get(orgUnitTreeSel, EXTENDED_TIMEOUT)
.find('[type="checkbox"]', EXTENDED_TIMEOUT)
.check(OU_ID)
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/edit/filter_restrict.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Feature: Editing Filter Restrictions
Then Filter Restrictions are not restricted

@nonmutating
Scenario: I see Period and Organisation Unit if newly choosing to restrict dimensions
Scenario: I see Period and Organisation unit if newly choosing to restrict dimensions
Given I open an existing dashboard with non-restricted Filter settings in edit mode
And I click on Filter settings
And I click to restrict Filter settings
Then Period and Organisation Unit are displayed as selected by default
Then Period and Organisation unit are displayed as selected by default

@nonmutating
Scenario: I change Filter Restrictions and the changes persist while editing Filter settings
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/edit/filter_restrict/filter_restrict.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ Then('Filter Restrictions are not restricted', () => {
})

/*
Scenario: I see Period and Organisation Unit if newly choosing to restrict dimensions
Scenario: I see Period and Organisation unit if newly choosing to restrict dimensions
*/

Then(
'Period and Organisation Unit are displayed as selected by default',
'Period and Organisation unit are displayed as selected by default',
() => {
cy.get('[data-test="dhis2-uicore-transfer-rightside"]')
.contains('Period')
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/view/dashboard_filter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Feature: Dashboard filter
When I add a "Period" filter
Then the Period filter is applied to the dashboard

Scenario: I add a Organisation Unit filter
Scenario: I add a Organisation unit filter
Given I open existing dashboard
Then the dashboard displays in view mode
When I add a "Organisation Unit" filter
Then the Organisation Unit filter is applied to the dashboard
When I add a "Organisation unit" filter
Then the Organisation unit filter is applied to the dashboard

Scenario: I add a Facility Type filter
Given I open existing dashboard
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/view/dashboard_filter/dashboard_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ Then('the Period filter is applied to the dashboard', () => {
})

/*
Scenario: I add an Organisation Unit filter
Scenario: I add an Organisation unit filter
*/

Then('the Organisation Unit filter is applied to the dashboard', () => {
Then('the Organisation unit filter is applied to the dashboard', () => {
cy.get(filterBadgeSel)
.contains(`Organisation Unit: ${OU}`)
.contains(`Organisation unit: ${OU}`)
.should('be.visible')

cy.get(innerScrollContainerSel).scrollTo('bottom')
Expand Down

0 comments on commit 2dd81ae

Please sign in to comment.