From bd447a102d9816d1a45b4e580635276477fd24e1 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Wed, 14 Aug 2024 10:17:43 +0200 Subject: [PATCH] MDL-82792 h5p: Fix random behat failures We've started seeing various failures in Firefox and Classic. Increasing the default window size fixes them. --- mod/h5pactivity/tests/behat/h5pactivity_completion.feature | 3 ++- .../tests/behat/h5pactivity_completion_pass_grade.feature | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/h5pactivity/tests/behat/h5pactivity_completion.feature b/mod/h5pactivity/tests/behat/h5pactivity_completion.feature index de03694e662..43b4c622beb 100644 --- a/mod/h5pactivity/tests/behat/h5pactivity_completion.feature +++ b/mod/h5pactivity/tests/behat/h5pactivity_completion.feature @@ -26,7 +26,8 @@ Feature: View activity completion information in the h5p activity | packagefilepath | h5p/tests/fixtures/filltheblanks.h5p | Scenario: View automatic completion items - Given I am on the "Music history" "h5pactivity activity" page logged in as teacher1 + Given I change window size to "large" + And I am on the "Music history" "h5pactivity activity" page logged in as teacher1 # Teacher view. And "Music history" should have the "View" completion condition And "Music history" should have the "Receive a grade" completion condition diff --git a/mod/h5pactivity/tests/behat/h5pactivity_completion_pass_grade.feature b/mod/h5pactivity/tests/behat/h5pactivity_completion_pass_grade.feature index 112e9b940db..9c1ff08bfef 100644 --- a/mod/h5pactivity/tests/behat/h5pactivity_completion_pass_grade.feature +++ b/mod/h5pactivity/tests/behat/h5pactivity_completion_pass_grade.feature @@ -30,7 +30,8 @@ Feature: Pass grade activity completion information in the h5p activity Scenario: View automatic completion items # Teacher view. - Given I am on the "Music history" "h5pactivity activity" page logged in as teacher1 + Given I change window size to "large" + And I am on the "Music history" "h5pactivity activity" page logged in as teacher1 And "Music history" should have the "View" completion condition And "Music history" should have the "Receive a grade" completion condition And "Music history" should have the "Receive a passing grade" completion condition