From 80234cbcffe317b3dc366575d0a6f03e8996cce1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 16 May 2023 12:37:09 +0000 Subject: [PATCH] [auto-generated] Update plugin files Check out the commits that caused these changes: https://github.com/moodlehq/moodleapp/compare/709070382e16043a6a1b4edf61b69869ef67a6b2...b1f16914952915f5e1cdc1d7d3c75ecd034d923d --- tests/behat/behat_app.php | 11 +++++++++++ tests/behat/behat_app_helper.php | 4 +--- version.php | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/behat/behat_app.php b/tests/behat/behat_app.php index 6eb1d6b..cfb2356 100644 --- a/tests/behat/behat_app.php +++ b/tests/behat/behat_app.php @@ -1102,4 +1102,15 @@ public function i_open_the_calendar_for($month, $year) { $this->zone_js("navigator.navigateToSitePath('/calendar/index', $options)"); } + /** + * Change the viewport size in the browser running the Moodle App. + * + * @Given /^I change viewport size to "(?P\d+)x(?P\d+)" in the app$/ + * @param int $width Width + * @param int $height Height + */ + public function i_change_viewport_size_in_the_app(int $width, int $height) { + $this->resize_app_window($width, $height); + } + } diff --git a/tests/behat/behat_app_helper.php b/tests/behat/behat_app_helper.php index f30572b..70235a5 100644 --- a/tests/behat/behat_app_helper.php +++ b/tests/behat/behat_app_helper.php @@ -600,9 +600,7 @@ protected function get_first_restricted_version_tag(): ?string { /** * Resize window to have app dimensions. */ - protected function resize_app_window() { - $width = 500; - $height = 720; + protected function resize_app_window(int $width = 500, int $height = 720) { $offset = $this->evaluate_script("{ x: window.outerWidth - document.body.offsetWidth, y: window.outerHeight - window.innerHeight, diff --git a/version.php b/version.php index aea2862..07396f0 100644 --- a/version.php +++ b/version.php @@ -6,7 +6,7 @@ defined('MOODLE_INTERNAL') || die; -$plugin->version = 2023051101; +$plugin->version = 2023051600; $plugin->requires = 2016052300; $plugin->maturity = MATURITY_STABLE; $plugin->release = '4.2.0';