Unverified Commit 818a0836 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3094525 by mglaman: UiHelperTrait::drupalLogin breaks when user.login...

Issue #3094525 by mglaman: UiHelperTrait::drupalLogin breaks when user.login or user.logout route paths altered

(cherry picked from commit d510989b)
parent 9455fc7a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ protected function drupalLogin(AccountInterface $account) {
      $this->drupalLogout();
    }

    $this->drupalGet('user/login');
    $this->drupalGet(Url::fromRoute('user.login'));
    $this->submitForm([
      'name' => $account->getAccountName(),
      'pass' => $account->passRaw,
@@ -267,7 +267,7 @@ protected function drupalLogout() {
    // idea being if you were properly logged out you should be seeing a login
    // screen.
    $assert_session = $this->assertSession();
    $this->drupalGet('user/logout', ['query' => ['destination' => 'user']]);
    $this->drupalGet(Url::fromRoute('user.logout', [], ['query' => ['destination' => 'user']]));
    $assert_session->fieldExists('name');
    $assert_session->fieldExists('pass');