From 7c351484a309d381f71cbcfc7977dd89be8e51aa Mon Sep 17 00:00:00 2001
From: Rajab Natshah <rajabn@gmail.com>
Date: Sun, 28 Mar 2021 16:59:12 +0300
Subject: [PATCH] Issue #3205085: Add a tag release-varbase workflow job for
 the CircleCI automated testing pipelines

---
 tests/features/bootstrap/VarbaseContext.php | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/features/bootstrap/VarbaseContext.php b/tests/features/bootstrap/VarbaseContext.php
index 99b9d151..416831d3 100644
--- a/tests/features/bootstrap/VarbaseContext.php
+++ b/tests/features/bootstrap/VarbaseContext.php
@@ -84,8 +84,10 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
         $this->logout();
       }
 
+      $this->getSession()->visit('/user/login');
       $page = $this->getSession()->getPage();
-      $this->getSession()->visit($this->locatePath('/user/login'));
+      $page->findField('edit-name');
+      $page->findField('edit-pass');
       $page->fillField('edit-name', $username);
       $page->fillField('edit-pass', $password);
       $submit = $page->findButton('op');
@@ -112,8 +114,10 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
     }
 
     // Login with the.
+    $this->getSession()->visit('/user/login');
     $page = $this->getSession()->getPage();
-    $this->getSession()->visit($this->locatePath('/user/login'));
+    $page->findField('edit-name');
+    $page->findField('edit-pass');
     $page->fillField('edit-name', $username);
     $page->fillField('edit-pass', $password);
     $submit = $page->findButton('op');
-- 
GitLab