Skip to content

Commit

Permalink
Fix Database\EventsTest 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 1d29d8a commit 94ae6e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/selenium/Database/EventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ function (): void {

sleep(2);
$this->dbQuery(
'SELECT val FROM `' . $this->databaseName . '`.`test_table`',
'SELECT * FROM `' . $this->databaseName . '`.`test_table`',
function (): void {
$this->assertTrue($this->isElementPresent('className', 'table_results'));
$this->scrollToElement($this->waitForElement('className', 'table_results'), 0, 20);
// [ ] | Edit | Copy | Delete | 1 | <number>
$this->assertGreaterThan(2, (int) $this->getCellByTableClass('table_results', 1, 5));
$this->assertGreaterThan(2, (int) $this->getCellByTableClass('table_results', 1, 6));
}
);
}
Expand Down Expand Up @@ -183,11 +183,11 @@ public function testEditEvents(): void

sleep(2);
$this->dbQuery(
'SELECT val FROM `' . $this->databaseName . '`.`test_table`',
'SELECT * FROM `' . $this->databaseName . '`.`test_table`',
function (): void {
$this->assertTrue($this->isElementPresent('className', 'table_results'));
$this->scrollToElement($this->waitForElement('className', 'table_results'), 0, 20);
// [ ] | Edit | Copy | Delete | 4
$this->assertGreaterThan(3, (int) $this->getCellByTableClass('table_results', 1, 5));
$this->assertGreaterThan(3, (int) $this->getCellByTableClass('table_results', 1, 6));
}
);
}
Expand Down

0 comments on commit 94ae6e1

Please sign in to comment.