File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -823,6 +823,18 @@ public function i_switch_to_the_browser_tab_opened_by_the_app() {
823823 $ this ->getSession ()->switchToWindow ($ windowNames [1 ]);
824824 }
825825
826+ /**
827+ * Switches to the app if the user is in a browser tab.
828+ *
829+ * @Given I switch back to the app
830+ */
831+ public function i_switch_back_to_the_app () {
832+ $ windowNames = $ this ->getSession ()->getWindowNames ();
833+ if (count ($ windowNames ) > 1 ) {
834+ $ this ->getSession ()->switchToWindow ($ windowNames [0 ]);
835+ }
836+ }
837+
826838 /**
827839 * Force cron tasks instead of waiting for the next scheduled execution.
828840 *
Original file line number Diff line number Diff line change 66
77defined ('MOODLE_INTERNAL ' ) || die;
88
9- $ plugin ->version = 2022090501 ;
9+ $ plugin ->version = 2022091500 ;
1010$ plugin ->requires = 2016052300 ;
1111$ plugin ->maturity = MATURITY_STABLE ;
1212$ plugin ->release = '4.1.0-dev ' ;
You can’t perform that action at this time.
0 commit comments