This repository was archived by the owner on May 3, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Features/Context/SubContext Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ trait Authentication
2525 /**
2626 * @Given I go to homepage
2727 */
28- public function goToPlatformUi ()
28+ public function goToPlatformUi ($ url = '' )
2929 {
30- $ this ->visit ($ this ->platformUiUri );
30+ $ this ->visit ($ this ->platformUiUri . $ url );
3131 }
3232
3333 /**
@@ -65,6 +65,8 @@ public function loggedAsAdminPlatformUi()
6565 public function iLogout ()
6666 {
6767 $ this ->shouldBeLoggedIn = false ;
68+ $ this ->goToPlatformUi ('#/dashboard ' );
69+ $ this ->waitForJs ();
6870 $ this ->iClickAtLink ("Logout " );
6971 }
7072
@@ -81,19 +83,7 @@ public function iShouldBeLoggedIn()
8183 }
8284
8385 /**
84- * Checks if the user is still logged in
85- *
86- * @AfterStep
87- */
88- public function runAfterStep ()
89- {
90- if ($ this ->shouldBeLoggedIn ) {
91- $ this ->iShouldBeLoggedIn ();
92- }
93- }
94-
95- /**
96- * Checks if the user is still logged in
86+ * Logs the user out
9787 *
9888 * @AfterScenario
9989 */
You can’t perform that action at this time.
0 commit comments