Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Completed gherkin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdPat-Redlink committed Dec 22, 2023
1 parent 27c820f commit 87703df
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
### Background:
- Study was created or exists and has a valid relative observation and 10 participants.

## Absolute Scheduler in SMF (updated version)

| **Scenario** | **Given** | **Steps** | **Expected Result** | **Result** | **Note** |
|---------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Participant list exists and updates | Background, and that a smartphone with the more app is prepared | <ul><li>WHEN I click on the participant tab, </li><li>And join the study as one of the participants </li></ul> | THEN the participants list should show a "started on" coloumn <br/>AND it should update with the correct starting date once the user data has been entered to the smartphone | | |
| Relative scheduer shows the correct start and end times | Background, and the observation tab is open | <ul><li>WHEN I create a new observation</li><li>AND I add a relative scheduler</li><li>AND enter a valid start and end date</li><li>AND save the relative scheduler</li><li>AND fill in the needed data to save.</li><li>AND save the observation.</li></ul> | THEN the relative scheduler should show the correct start and end date (I have entered) at any given point during this test. | | |
| The exported calendar shows the correct dates. | Background, and the study list is open. | <ul><li>WHEN I click the export study calendar button</li><li>AND I import the data to lokal calendar</li></ul> | THEN the existing observation(s) should be displayed correctly <br/>AND should not have a one hour offset compared to the observation(s) in the study manager | | |
| Correct observation display on the smartphone | Background, one observation with a relative calendar exists with an start time of day one at 00:00 and an end time of 12:00<br/> AND it is repeated every day<br/>AND a mobile phone with the MORE app is ready to join the study <br/>AND the participant tab is open | <ul><li>WHEN I join the study on the mobile phone as one of the participants, which can have a relative observation take place,</li></ul> | THEN the observaions should be shown at the correct time, at the correct day. | | |
| **Scenario** | **Given** | **Steps** | **Expected Result** | **Result** | **Note** |
|---------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|-----------------------------------------------------|
| Participant list exists and updates | Background, and that a smartphone with the more app is prepared | <ul><li>WHEN I click on the participant tab, </li><li>And join the study as one of the participants </li></ul> | THEN the participants list should show a "started on" coloumn <br/>AND it should update with the correct starting date once the user data has been entered to the smartphone | as expected | After reload the startdate and time has been shown. |
| Relative scheduer shows the correct start and end times | Background, and the observation tab is open | <ul><li>WHEN I create a new observation</li><li>AND I add a relative scheduler</li><li>AND enter a valid start and end date</li><li>AND save the relative scheduler</li><li>AND fill in the needed data to save.</li><li>AND save the observation.</li></ul> | THEN the relative scheduler should show the correct start and end date (I have entered) at any given point during this test. | as expected | |
| The exported calendar shows the correct dates. | Background, and the study list is open. | <ul><li>WHEN I click the export study calendar button</li><li>AND I import the data to lokal calendar</li></ul> | THEN the existing observation(s) should be displayed correctly <br/>AND should not have a one hour offset compared to the observation(s) in the study manager | as expected | |
| Correct observation display on the smartphone | Background, one observation with a relative calendar exists with an start time of day one at 00:00 and an end time of 12:00<br/> AND it is repeated every day<br/>AND a mobile phone with the MORE app is ready to join the study <br/>AND the participant tab is open | <ul><li>WHEN I join the study on the mobile phone as one of the participants, which can have a relative observation take place,</li></ul> | THEN the observaions should be shown at the correct time, at the correct day. | as expected | |

0 comments on commit 87703df

Please sign in to comment.