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@e49f10e...3278d5a
  • Loading branch information
github-actions[bot] committed Sep 5, 2024
1 parent 4a8e554 commit 680e9f0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
47 changes: 46 additions & 1 deletion tests/behat/behat_app.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public function i_enter_the_activity_in_the_app(string $activity, string $activi
/**
* Presses standard buttons in the app.
*
* @When /^I press the (back|more menu|page menu|user menu|main menu) button in the app$/
* @When /^I press the (back|more menu|page menu|user menu) button in the app$/
* @param string $button Button type
* @throws DriverException If the button push doesn't work
*/
Expand All @@ -485,6 +485,51 @@ public function i_press_the_standard_button_in_the_app(string $button) {
$this->wait_for_pending_js();
}

/**
* Presses go back repeatedly in the app.
*
* @When /^I go back( (\d+) times)? in the app$/
* @param int $times
* @throws DriverException If the navigation doesn't work
*/
public function i_go_back_x_times_in_the_app(?string $unused = null, ?int $times = 1) {
if ($times < 1) {
return;
}

$this->spin(function() use ($times) {
$result = $this->runtime_js("goBackTimes($times)");

if ($result !== 'OK') {
throw new DriverException('Error navigating back - ' . $result);
}

return true;
});

$this->wait_for_pending_js();
}

/**
* Presses go back repeatedly until the app is in the main menu.
*
* @When /^I go back to the root page in the app$/
* @throws DriverException If the navigation doesn't work
*/
public function i_go_back_to_root_in_the_app() {
$this->spin(function() {
$result = $this->runtime_js("goBackToRoot()");

if ($result !== 'OK') {
throw new DriverException('Error navigating to root - ' . $result);
}

return true;
});

$this->wait_for_pending_js();
}

/**
* Receives push notifications.
*
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 = 2024090200;
$plugin->version = 2024090500;
$plugin->requires = 2016052300;
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '4.5.0';
Expand Down

0 comments on commit 680e9f0

Please sign in to comment.