From c3e713137dc58bee053d8acba48aaca1b033086a Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Tue, 13 Jun 2023 12:19:38 +0200 Subject: [PATCH] MOBILE-4362 behat: Fix tests in headless mode Headless mode was using a smaller window size which caused the course index to be hidden by default, and that's what made tests fail. --- .../lesson/tests/behat/numerical_decimal_separator-311.feature | 1 + .../mod/lesson/tests/behat/numerical_decimal_separator.feature | 1 + 2 files changed, 2 insertions(+) diff --git a/src/addons/mod/lesson/tests/behat/numerical_decimal_separator-311.feature b/src/addons/mod/lesson/tests/behat/numerical_decimal_separator-311.feature index 5f9977ab5..16ce86941 100755 --- a/src/addons/mod/lesson/tests/behat/numerical_decimal_separator-311.feature +++ b/src/addons/mod/lesson/tests/behat/numerical_decimal_separator-311.feature @@ -19,6 +19,7 @@ Feature: Test decimal separators in lesson | lesson | Offline lesson | Offline lesson descr | C1 | lesson | 1 | 1 | 9 | 1 | 1 | # Currently there are no generators for pages. See MDL-77581. And I log in as "teacher1" + And I change window size to "small" And I am on "Course 1" course homepage And I follow "Basic lesson" And I follow "Add a question page" diff --git a/src/addons/mod/lesson/tests/behat/numerical_decimal_separator.feature b/src/addons/mod/lesson/tests/behat/numerical_decimal_separator.feature index f37882d91..f48b65814 100755 --- a/src/addons/mod/lesson/tests/behat/numerical_decimal_separator.feature +++ b/src/addons/mod/lesson/tests/behat/numerical_decimal_separator.feature @@ -19,6 +19,7 @@ Feature: Test decimal separators in lesson | lesson | Offline lesson | Offline lesson descr | C1 | lesson | 1 | 1 | 9 | 1 | 1 | # Currently there are no generators for pages. See MDL-77581. And I log in as "teacher1" + And I change window size to "small" And I am on "Course 1" course homepage And I follow "Basic lesson" And I follow "Add a question page"