Skip to content

Commit 80234cb

Browse files
[auto-generated] Update plugin files
Check out the commits that caused these changes: moodlehq/moodleapp@7090703...b1f1691
1 parent ed054ea commit 80234cb

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

tests/behat/behat_app.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,4 +1102,15 @@ public function i_open_the_calendar_for($month, $year) {
11021102
$this->zone_js("navigator.navigateToSitePath('/calendar/index', $options)");
11031103
}
11041104

1105+
/**
1106+
* Change the viewport size in the browser running the Moodle App.
1107+
*
1108+
* @Given /^I change viewport size to "(?P<width>\d+)x(?P<height>\d+)" in the app$/
1109+
* @param int $width Width
1110+
* @param int $height Height
1111+
*/
1112+
public function i_change_viewport_size_in_the_app(int $width, int $height) {
1113+
$this->resize_app_window($width, $height);
1114+
}
1115+
11051116
}

tests/behat/behat_app_helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,7 @@ protected function get_first_restricted_version_tag(): ?string {
600600
/**
601601
* Resize window to have app dimensions.
602602
*/
603-
protected function resize_app_window() {
604-
$width = 500;
605-
$height = 720;
603+
protected function resize_app_window(int $width = 500, int $height = 720) {
606604
$offset = $this->evaluate_script("{
607605
x: window.outerWidth - document.body.offsetWidth,
608606
y: window.outerHeight - window.innerHeight,

version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
defined('MOODLE_INTERNAL') || die;
88

9-
$plugin->version = 2023051101;
9+
$plugin->version = 2023051600;
1010
$plugin->requires = 2016052300;
1111
$plugin->maturity = MATURITY_STABLE;
1212
$plugin->release = '4.2.0';

0 commit comments

Comments
 (0)