Generic

⚠️WARNING⚠️ NEED a big refactoring. These steps are used to setup all generic interaction with the interface. Actions : clicks, enters ...etc Assertion:display,contains...etc

When

Clicks on an element + verify that it is te only one in the page

Parameters :

Name Type Description Values
element {string} Element's name

Example :

the HCP clicks on the "patients list add patient button"

Clicks on the Xth element of that type

Parameters :

Name Type Description Values
element {string} Element's name
pos {number} Element's position

Example :

the HCP clicks on the "visit list table row" in position 1
Will open the 1st visit in the list

Clicks on a random element of this type

Parameters :

Name Type Description Values
element {string} Element's name

Example :

the HCP clicks on the "patient list table row" in a random position
Will open a random patient from the list

To Do :

Type Description
SIMPLE Rephrase to align all random steps

Clicks on a element that contains a specific text + verify that it is te only one in the page

Parameters :

Name Type Description Values
element {string} Element's name
value {string} Element's
- Values : text that is contained by the element

Example :

the HCP clicks on the "patient list table row" that contains "Joe"
Will open the patient names Joe

Clicks on the Xth element that contains a specific text

Parameters :

Name Type Description Values
element {string} Element's name
value {string} Element's
- Values : text that is contained by the element
pos {number} Element's position

Example :

the HCP clicks on the "patient list table row" that contains "Unverified" in position 3
Will open the 3rd patient that has a Unverified status

Clicks on a random element that contains a specific text

Parameters :

Name Type Description Values
element {string} Element's name
value {string} Element's
- Values : text that is contained by the element

Example :

the HCP clicks on a random "patient list table row" that contains "Active"
Will opens a random patient that has a Active status

Clicks on an element that is inside a parent element

Parameters :

Name Type Description Values
childElement {string} Element's name
parentElement {string} Name of the element that contains the one to click on

Clicks on an element that is inside the Xth parent element of this type

Parameters :

Name Type Description Values
childElement {string} Element's name
parentElement {string} Name of the element that contains the one to click on
parentElementPosition {number} Parent element's position

Example :

the HCP clicks on the "patient list table row kebab button" of the "patient list table row" in position 1
Will open the kebab menu of the 1st patient in the list

Clicks on a the element that is contained in a random parentElement of this type

Parameters :

Name Type Description Values
childElement {string} Element's name
parentElement {string} Name of the element that contains the one to click on

Example :

the HCP clicks on the "patient list table row kebab button" of the "patient list table row" in a random position
Will open the kebab menu of a random patient in the list

To Do :

Type Description
SIMPLE Rephrase to align all random steps

Clicks on an element that is inside a parent element

Parameters :

Name Type Description Values
childElement {string} Element's name
childElementPosition {number} Parent element's position
parentElement {string} Name of the element that contains the one to click on

Clicks on a random element of this type that is contained in a random parentElement of this type

Parameters :

Name Type Description Values
childElement {string} Element's name
parentElement {string} Name of the element that contains the one to click on

To Do :

Type Description
SIMPLE Rephrase to align all random steps

Clicks on a specific element for all parentElement

Parameters :

Name Type Description Values
childElement {string} Element's name (for now only cancel icon is possible)
parentElement {string} Name of the element that contains the one to click on

Example :

the HCP clicks on the "cancel icon" for each "patients list status filter chip"
Will remove all the patient list status filter chip

To Do :

Type Description
CODE fix a bug if use a forEach

Clicks on an element + verify that it is te only one in the page

Example :

the HCP clicks on the corner
Remove the focus of a field / try or quit a popup

To Do :

Type Description
QUESTION Merge with click ??

Hovers an element

Parameters :

Name Type Description Values
element {string} Element's name

Example :

the HCP hovers the "side nav site element"
Make a tooltip of the site element in the menu appears

Enters a text in a field

Parameters :

Name Type Description Values
element {string} Element's name
text {string} Can be "variable" OR free text (if the text is not a known variable)
- Values : "" / "a valid date in the future" / "a valid time" / "a random long text" / "the stored password"

Example :

the HCP enters "a random long text" in the "visit panel notes for patient field"
the HCP enters "a valid date in the future" in the "visit panel date field"
the HCP enters "" in the "add patient panel  field" AND the HCP blurs the "add patient panel  field" "input"
Will enter the field and then remove the focus (test empty field error)
the HCP enters "Jean" in the "patients list search field"

To Do :

Type Description
DOC add option in param

Enters a text in a field

Parameters :

Name Type Description Values
element {string} Element's name
fieldType {string} Input or combobox

Example :

the HCP enters "" in the "add patient panel  field" AND the HCP blurs the "add patient panel  field" "input"
Will enter the field and then remove the focus (test empty field error)

To Do :

Type Description
DOC add option in param

Clears a field value

Parameters :

Name Type Description Values
element {string} Element's name
dataType {string} Text or options selected or note

Example :

the HCP clears the "edit patient profile pathway field" "options selected"
the HCP clears the "edit patient profile external Id field" "text"

To Do :

Type Description
DOC add option in param

Selects an option in a list according to the text contained in the option

Parameters :

Name Type Description Values
optionText {string} Text contained in the option to select
selectList {string} Select list element's name

Example :

the HCP selects "Pathway (15)" options in the "edit patient profile pathway field"
Will select in the pathway field the option that contains "Pathway (15)"

To Do :

Type Description
ORTHO remove s from options

Selects a specific number of options in a list

Parameters :

Name Type Description Values
numberOfOption {string} Number of options to select
selectList {string} Select list element's name

Example :

the HCP selects 3 random options in the "edit patient profile pathway field"
Will select in the pathway field 3 random options


Then

Assert that an element has a particular status