Skip to content

Commit

Permalink
Fix Database\TriggersTest E2E 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 Apr 26, 2024
1 parent 94ae6e1 commit f384f9b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/selenium/Database/TriggersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ function (): void {
// test trigger
$this->dbQuery('USE `' . $this->databaseName . '`;INSERT INTO `test_table` (val) VALUES (1);');
$this->dbQuery(
'SELECT val FROM `' . $this->databaseName . '`.`test_table2`;',
'SELECT * FROM `' . $this->databaseName . '`.`test_table2`;',
function (): void {
$this->assertTrue($this->isElementPresent('className', 'table_results'));
$this->scrollToElement($this->waitForElement('className', 'table_results'), 0, 20);
// [ ] | Edit | Copy | Delete | 1 | 3
$this->assertEquals('3', $this->getCellByTableClass('table_results', 1, 5));
$this->assertEquals('3', $this->getCellByTableClass('table_results', 1, 6));
}
);
}
Expand Down Expand Up @@ -157,11 +157,11 @@ public function testEditTriggers(): void
// test trigger
$this->dbQuery('USE `' . $this->databaseName . '`;INSERT INTO `test_table` (val) VALUES (1);');
$this->dbQuery(
'SELECT val FROM `' . $this->databaseName . '`.`test_table2`;',
'SELECT * FROM `' . $this->databaseName . '`.`test_table2`;',
function (): void {
$this->assertTrue($this->isElementPresent('className', 'table_results'));
$this->scrollToElement($this->waitForElement('className', 'table_results'), 0, 20);
// [ ] | Edit | Copy | Delete | 1 | 12
$this->assertEquals('12', $this->getCellByTableClass('table_results', 1, 5));
$this->assertEquals('12', $this->getCellByTableClass('table_results', 1, 6));
}
);
}
Expand Down Expand Up @@ -189,11 +189,11 @@ public function testDropTrigger(): void
// test trigger
$this->dbQuery('USE `' . $this->databaseName . '`;INSERT INTO `test_table` (val) VALUES (1);');
$this->dbQuery(
'SELECT val FROM `' . $this->databaseName . '`.`test_table2`;',
'SELECT * FROM `' . $this->databaseName . '`.`test_table2`;',
function (): void {
$this->assertTrue($this->isElementPresent('className', 'table_results'));
$this->scrollToElement($this->waitForElement('className', 'table_results'), 0, 20);
// [ ] | Edit | Copy | Delete | 1 | 2
$this->assertEquals('2', $this->getCellByTableClass('table_results', 1, 5));
$this->assertEquals('2', $this->getCellByTableClass('table_results', 1, 6));
}
);

Expand Down

0 comments on commit f384f9b

Please sign in to comment.