Merge pull request #26 from NoelDeMartin/MOBILE-3320
MOBILE-3320 behat: Trigger change detection oncemain
commit
b89837edf5
|
@ -793,12 +793,9 @@ class behat_app extends behat_base {
|
||||||
new ExpectationException('Forced cron tasks in the app took too long to complete', $session)
|
new ExpectationException('Forced cron tasks in the app took too long to complete', $session)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Trigger Angular change detection multiple times in case some changes have
|
// Trigger Angular change detection
|
||||||
// side-effects that result in further pending operations.
|
|
||||||
for ($ticks = 5; $ticks > 0; $ticks--) {
|
|
||||||
$session->executeScript($this->islegacy ? 'appRef.tick();' : 'changeDetector.detectChanges();');
|
$session->executeScript($this->islegacy ? 'appRef.tick();' : 'changeDetector.detectChanges();');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wait until loading has finished.
|
* Wait until loading has finished.
|
||||||
|
|
Loading…
Reference in New Issue