Merge pull request #19992 from MauricioFauth/e2e-tests-fix
Fix failing end to end tests
This commit is contained in:
commit
8148b4bc72
@ -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`',
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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 . '`;'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user