From 76e0af0a136bc4e8afd6ac65710290905519cdf6 Mon Sep 17 00:00:00 2001 From: Philipp Imhof <52650214+PhilippImhof@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:26:31 +0100 Subject: [PATCH] fix behat test --- tests/behat/form.feature | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests/behat/form.feature b/tests/behat/form.feature index 2ebf8db..3575a94 100644 --- a/tests/behat/form.feature +++ b/tests/behat/form.feature @@ -32,9 +32,39 @@ Feature: Validation and display of the form And quiz "Quiz 1" contains the following questions: | question | page | maxmark | | Q1 | 1 | 1.0 | + And quiz "Quiz 2" contains the following questions: + | question | page | maxmark | + | Q1 | 1 | 1.0 | + And quiz "Quiz 3" contains the following questions: + | question | page | maxmark | + | Q1 | 1 | 1.0 | + And quiz "Quiz 4" contains the following questions: + | question | page | maxmark | + | Q1 | 1 | 1.0 | + And quiz "Quiz 5" contains the following questions: + | question | page | maxmark | + | Q1 | 1 | 1.0 | + And quiz "Quiz 6" contains the following questions: + | question | page | maxmark | + | Q1 | 1 | 1.0 | And user "student1" has attempted "Quiz 1" with responses: | slot | response | | 1 | The first student's answer. | + And user "student1" has attempted "Quiz 2" with responses: + | slot | response | + | 1 | The first student's answer. | + And user "student1" has attempted "Quiz 3" with responses: + | slot | response | + | 1 | The first student's answer. | + And user "student1" has attempted "Quiz 4" with responses: + | slot | response | + | 1 | The first student's answer. | + And user "student1" has attempted "Quiz 5" with responses: + | slot | response | + | 1 | The first student's answer. | + And user "student1" has attempted "Quiz 6" with responses: + | slot | response | + | 1 | The first student's answer. | Scenario: Invalid form values should trigger an error message When I am on the "Quiz 1" "quiz_essaydownload > essaydownload report" page logged in as "teacher1"