diff --git a/lib/tests/behat/behat_general.php b/lib/tests/behat/behat_general.php index d8d5264991a..2cdd394145a 100644 --- a/lib/tests/behat/behat_general.php +++ b/lib/tests/behat/behat_general.php @@ -982,7 +982,7 @@ class behat_general extends behat_base { * Example: I change window size to "small" or I change window size to "1024x768" * * @throws ExpectationException - * @Then /^I change window size to "([^"](small|medium|large|\d+x\d+))"$/ + * @Then /^I change window size to "(small|medium|large|\d+x\d+)"$/ * @param string $windowsize size of the window (small|medium|large|wxh). */ public function i_change_window_size_to($windowsize) { diff --git a/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature b/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature index b49f6807877..d047b5c3186 100644 --- a/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature +++ b/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature @@ -131,6 +131,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading And I follow "View/grade all submissions" And I click on "Grade" "link" in the "Student 2" "table_row" And I follow "Launch PDF editor..." + And I change window size to "large" And I click on ".stampbutton" "css_element" And I click on ".drawingcanvas" "css_element" And I click on "Close" "button" diff --git a/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature b/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature index 1bdb027afb1..31fc64fc490 100644 --- a/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature +++ b/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature @@ -53,6 +53,7 @@ Feature: In a group assignment, teacher can annotate PDF files for all users And I follow "View/grade all submissions" And I click on "Grade" "link" in the "Submitted for grading" "table_row" And I follow "Launch PDF editor..." + And I change window size to "large" And I click on ".navigate-next-button" "css_element" And I click on ".stampbutton" "css_element" And I click on ".drawingcanvas" "css_element"