From c4fb42e3c6871edcb55414467e878db6c7a5304f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 30 Aug 2023 14:05:40 -0300 Subject: [PATCH] Fix Selenium\Database\OperationsTest failing test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- test/selenium/Database/OperationsTest.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/selenium/Database/OperationsTest.php b/test/selenium/Database/OperationsTest.php index d09efb6e6b..bf1f95e578 100644 --- a/test/selenium/Database/OperationsTest.php +++ b/test/selenium/Database/OperationsTest.php @@ -63,8 +63,9 @@ class OperationsTest extends TestBase $new_db_name = $this->databaseName . 'rename'; $this->scrollIntoView('createTableMinimalForm'); - $this->byCssSelector('form#rename_db_form input[name=newname]') - ->sendKeys($new_db_name); + $newNameInput = $this->byCssSelector('form#rename_db_form input[name=newname]'); + $newNameInput->clear(); + $newNameInput->sendKeys($new_db_name); $this->byCssSelector("form#rename_db_form input[type='submit']")->click(); @@ -106,8 +107,9 @@ class OperationsTest extends TestBase $this->reloadPage();// Reload or scrolling will not work .. $new_db_name = $this->databaseName . 'copy'; $this->scrollIntoView('renameDbNameInput'); - $this->byCssSelector('form#copy_db_form input[name=newname]') - ->sendKeys($new_db_name); + $newNameInput = $this->byCssSelector('form#copy_db_form input[name=newname]'); + $newNameInput->clear(); + $newNameInput->sendKeys($new_db_name); $this->scrollIntoView('copy_db_form', -150); $this->byCssSelector('form#copy_db_form input[name="submit_copy"]')->click();