Resolve "E2E Initiative C: Step 2 PAT Answer Questions"
Closes #1333 (closed)
This is kind of a lot, I recommend reviewing commit by commit. You only need to look at the C_003 and C_004 files, the other files were just me writing util functions and scouting them in the other specs.
Basically:
C_004 = Testing query run, i.e. answering questions, editing/removing answers, all done slide
C_003 = Calendar date picker, i.e. changing the date in the query run
- Completed C_004 (+ refactored a little to avoid code repetition)
- Added C_003
- Made C_004 run again inside C_003 for a changed date. Except C_004.1 because going to the home screen resets the date to today (double-checked with Elisabeth)
Please see the comment below for questions/discussion!
Possible future work
Rework the all done slide tests to match the Miro board (C_004.5 and C_004.6 were only added today). This probably means splitting test "it('should be able to answer the different question types and show "Change answers" button when all are answered (C_004.3)'" into two different tests. Will be done in a future sprint.