File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 5555 cd site-wxt
5656 make drupal_install
5757 make drupal_migrate
58+ sudo mkdir -p /tmp/browser_output
59+ sudo chmod -R 777 /tmp/browser_output
5860 make test
Original file line number Diff line number Diff line change @@ -32,15 +32,20 @@ class WxTTest extends BrowserTestBase {
3232 */
3333 public function testWxtLogin () {
3434 // Create a user to check the login.
35- $ user = $ this ->createUser ();
35+ $ user = $ this ->createUser ([ ' access toolbar ' ] );
3636
3737 // Log in our user.
3838 $ this ->drupalLogin ($ user );
3939
4040 // Verify that logged in user can access the logout link.
4141 $ this ->drupalGet ('user ' );
42+ $ this ->assertSession ()->statusCodeEquals (200 );
4243
43- $ this ->assertSession ()->linkByHrefExists ('/user/logout ' );
44+ print "\n===== RESPONSE HTML START ===== \n" ;
45+ print $ this ->getSession ()->getPage ()->getContent ();
46+ print "\n===== RESPONSE HTML END ===== \n" ;
47+
48+ $ this ->assertSession ()->elementExists ('css ' , 'a[href*="/user/logout"] ' );
4449 }
4550
4651}
You can’t perform that action at this time.
0 commit comments