List common

Steps to interact with list, to sort and filter ⚠️WARNING⚠️ : Harmonize ortho Patient/Visit with and without S + variable that are sometimes "patients" or "patients list"

When

Navigate through list pages with navigation arrow

Parameters :

Name Type Description Values
nextOrPrevious {string} Way to navigate
  • next or previous
listName {string} - Name of the list the HCP navigates (WARNING)
  • patient (WARNING without S)
  • visits (WARNING with S)

Example :

the HCP clicks on the "next" arrow of the "visits" list
the HCP clicks on the "previous" arrow of the "patient" list

To Do :

Type Description
FIX homogenize orthography with S or without between all the datacy of visit and patient

Change the number of element per page on a list

Parameters :

Name Type Description Values
numberOfElementPerPage {number} Number of element per page to select
  • 10, 20, 50 or 100
listName {string} - Name of the list the HCP navigates (WARNING to the S)
  • patient (WARNING without S)
  • visits (WARNING with S)

Example :

the HCP selects a number of element per page 10 on the "visits" list
the HCP selects a number of element per page 50 on the "patient" list

To Do :

Type Description
FIX homogenize orthography with S or without between all the datacy of visit and patient

TO ADAPT to the rework of this step def

Parameters :

Name Type Description Values
text {string} text or specific data stored to search
  • free text
  • the stored patient ID
element {string} Element's name (WARNING to the S)
  • patients list search field (WARNING to the S)
  • visits list search field (WARNING to the S)

Example :

the HCP searches "the stored patient ID" in the "visits list search field" and wait for the list to be updated
the HCP searches "joe@mail.com" in the "patients list search field" and wait for the list to be updated
the HCP searches "the stored patient ID" in the "visits list search field" and wait for the list to be updated

To Do :

Type Description
FIX homogenize orthography with S or without between all the datacy of visit and patient
SUGGESTION Rework this step to adapt with storage step definitions
Simplify the visit list search field with only visit or patient as variable ? depending of the use of the step definition only for list search ?
Make this this command not dependant of the type of list the HCP searches {text} and wait for the list to be updated then enter in the search fields of the page patient or visit


Then

Assert that the total number of element (in the pagination) correspond to the number of element stored

Parameters :

Name Type Description Values
listName {string} Name of the list that displays all value
  • patients list (WARNING with S)
  • visits list (WARNING with S)

Example :

the "patients list" displays all value

To Do :

Type Description
CODE} PUT "ALL" AS A VARIABLE > TO BE ABLE TO CHECK THE NUMBER OF VALUE (MERGE WITH THE {LISTNAME} LIST DISPLAYS THE CORRECT {CORRECTDATA} FOR PAGE {PAGENUMBER )
FIX homogenize orthography with S or without between all the datacy of visit and patient

Assert that the element's number or pagination numbers are correct for the current pagination value for a specific page

Parameters :

Name Type Description Values
listName {string} Name of the list that displays all value
  • patient (WARNING without S)
  • visits (WARNING with S)
correctData {string} Name of the data that should be asserted
  • number of element
  • pagination
pageNumber {string} Page number where the HCP is --- will impact if last page (see comment in code)

Example :

the "patient" list displays the correct "number of element" for page 3
the list has the correct number of line for page 3 with the current "number of element per page"
the "patient" list displays the correct "pagination" for page 3
the list has the pagination number for page 3 with the current "number of element per page"

To Do :

Type Description
SUGGESTION Refactor this code to make it more robust or merged with other step def

Assert that the element's number or pagination numbers are correct for the current page for a specific pagination value

Parameters :

Name Type Description Values
listName {string} Name of the list that displays all value
  • patient (WARNING without S)
  • visits (WARNING with S)
correctData {string} Name of the data that should be asserted
  • number of element
  • pagination
numberOfElementPerPage {string} Pagination value
  • 10, 20, 50 or 100

Example :

the "patient" list displays the correct "number of element" for a pagination of 10
the list has the correct number of line for the current page with the "number of element per page"
the "patient" list displays the correct "pagination" for a pagination of 100
the list has the pagination number for the current page with the "number of element per page"

To Do :

Type Description
SUGGESTION Refactor this code to make it more robust or merged with other step def