Skip to content

Commit

Permalink
[auto-generated] Update plugin files
Browse files Browse the repository at this point in the history
Check out the commits that caused these changes: moodlehq/moodleapp@7090703...b1f1691
  • Loading branch information
github-actions[bot] committed May 16, 2023
1 parent ed054ea commit 80234cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
11 changes: 11 additions & 0 deletions tests/behat/behat_app.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<width>\d+)x(?P<height>\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);
}

}
4 changes: 1 addition & 3 deletions tests/behat/behat_app_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 80234cb

Please sign in to comment.