Skip to content

Commit

Permalink
Fix Selenium\Database\OperationsTest failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Aug 30, 2023
1 parent 846381b commit c4fb42e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/selenium/Database/OperationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ public function testRenameDB(): void
$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();

Expand Down Expand Up @@ -106,8 +107,9 @@ public function testCopyDb(): void
$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();
Expand Down

0 comments on commit c4fb42e

Please sign in to comment.