Skip to content

Commit 36e79ef

Browse files
committed
MOBILE-3401: Remove javascript return evaluation when unnecessary
1 parent d29dc3a commit 36e79ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/behat/behat_local_moodlemobileapp.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function i_run_cron_tasks_in_the_app() {
4848
// Force cron tasks execution and wait until they are completed.
4949
$operationid = random_string();
5050

51-
$session->evaluateScript(
51+
$session->executeScript(
5252
"cronProvider.forceSyncExecution().then(() => { window['behat_{$operationid}_completed'] = true; });"
5353
);
5454
$this->spin(
@@ -63,7 +63,7 @@ function() use ($session, $operationid) {
6363
// Trigger Angular digest cycle multiple times in case some changes have
6464
// side-effects that result in further pending operations.
6565
for ($ticks = 5; $ticks > 0; $ticks--) {
66-
$session->evaluateScript('appRef.tick();');
66+
$session->executeScript('appRef.tick();');
6767
}
6868
}
6969

@@ -77,7 +77,7 @@ public function i_wait_loading_to_finish_in_the_app() {
7777

7878
$this->spin(
7979
function() use ($session) {
80-
$session->evaluateScript('appRef.tick();');
80+
$session->executeScript('appRef.tick();');
8181

8282
$nodes = $this->find_all('css', 'core-loading ion-spinner');
8383

0 commit comments

Comments
 (0)