-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2887 from dhis2/dev
feat: 100.3.0
- Loading branch information
Showing
51 changed files
with
2,281 additions
and
661 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,9 @@ _text_ | |
|
||
### TODO | ||
|
||
- [ ] Cypress tests | ||
- [ ] Update docs | ||
- [ ] Manual testing | ||
- [ ] _task_ | ||
|
||
--- | ||
|
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { typeInput } from '../common.js' | ||
|
||
const minValueInput = 'measure-critiera-min-value' | ||
const maxValueInput = 'measure-critiera-max-value' | ||
const minOperatorSelect = 'measure-critiera-min-operator' | ||
const minOperatorSelectOption = 'measure-critiera-min-operator-option' | ||
const maxOperatorSelect = 'measure-critiera-max-operator' | ||
const maxOperatorSelectOption = 'measure-critiera-max-operator-option' | ||
|
||
export const setMinValue = (text) => typeInput(minValueInput, text) | ||
|
||
export const setMaxValue = (text) => typeInput(maxValueInput, text) | ||
|
||
export const changeMinOperator = (optionName) => { | ||
cy.getBySel(minOperatorSelect).click() | ||
cy.getBySelLike(minOperatorSelectOption).contains(optionName).click() | ||
} | ||
|
||
export const changeMaxOperator = (optionName) => { | ||
cy.getBySel(maxOperatorSelect).click() | ||
cy.getBySelLike(maxOperatorSelectOption).contains(optionName).click() | ||
} | ||
|
||
export const expectMinValueToBeValue = (value) => | ||
cy.getBySel(minValueInput).find('input').should('have.value', value) | ||
|
||
export const expectMaxValueToBeValue = (value) => | ||
cy.getBySel(maxValueInput).find('input').should('have.value', value) | ||
|
||
export const expectMinOperatorToBeOption = (optionName) => | ||
cy.getBySel(minOperatorSelect).containsExact(optionName) | ||
|
||
export const expectMaxOperatorToBeOption = (optionName) => | ||
cy.getBySel(maxOperatorSelect).containsExact(optionName) |
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.