Merge pull request #19992 from MauricioFauth/e2e-tests-fix

Fix failing end to end tests
This commit is contained in:
Maurício Meneghini Fauth 2025-12-16 16:57:07 -03:00 committed by GitHub
commit 8148b4bc72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View File

@ -52,7 +52,7 @@ class StructureTest extends TestBase
$this->waitForElement('id', 'functionConfirmOkButton')->click();
$success = $this->waitForElement('cssSelector', '.alert-success');
self::assertStringContainsString('MySQL returned an empty result', $success->getText());
self::assertStringContainsString('Table test_table has been emptied.', $success->getText());
$this->dbQuery(
'SELECT CONCAT("Count: ", COUNT(*)) as c FROM `' . $this->databaseName . '`.`test_table`',

View File

@ -60,7 +60,6 @@ class CreateTest extends TestBase
$columnDropdownDetails = [
'field_0_6' => 'UNSIGNED',
'field_1_2' => 'VARCHAR',
'field_1_5' => 'utf8mb4_general_ci',
'field_1_4' => 'As defined:',
];
@ -71,6 +70,13 @@ class CreateTest extends TestBase
)->click();
}
// click to load select options
$this->byId('field_1_5')->click();
$this->waitForElement(
'xpath',
'//select[@id=\'field_1_5\']//option[contains(text(), \'utf8mb4_general_ci\')]',
)->click();
$this->byName('field_default_value[1]')->sendKeys('def');
$this->scrollToBottom();

View File

@ -172,7 +172,7 @@ class OperationsTest extends TestBase
$this->waitAjax();
$success = $this->waitForElement('cssSelector', '.alert-success');
self::assertStringContainsString('MySQL returned an empty result set', $success->getText());
self::assertStringContainsString('Table test_table has been emptied.', $success->getText());
$this->dbQuery(
'SELECT CONCAT("Count: ", COUNT(*)) as c FROM `' . $this->databaseName . '`.test_table',
@ -195,7 +195,7 @@ class OperationsTest extends TestBase
$this->waitAjax();
$success = $this->waitForElement('cssSelector', '.alert-success');
self::assertStringContainsString('MySQL returned an empty result set', $success->getText());
self::assertStringContainsString('Table test_table has been dropped.', $success->getText());
$this->dbQuery(
'USE `' . $this->databaseName . '`;'