Skip to content

Commit

Permalink
Fix Database\QueryByExampleTest 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 f384f9b commit 2cb2ce7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/selenium/Database/QueryByExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,56 +119,56 @@ public function testQueryByExample(): void
$submitButton->click();
$this->waitAjax();

$this->waitForElement('cssSelector', 'table.table_results');
$this->scrollToElement($this->waitForElement('className', 'table_results'), 0, 20);

/* Assert Row 1 */
$this->assertEquals(
4,
$this->getCellByTableClass('table_results', 1, 5)
$this->getCellByTableClass('table_results', 1, 1)
);
$this->assertEquals(
3,
$this->getCellByTableClass('table_results', 1, 6)
$this->getCellByTableClass('table_results', 1, 2)
);

/* Assert Row 2 */
$this->assertEquals(
6,
$this->getCellByTableClass('table_results', 2, 5)
$this->getCellByTableClass('table_results', 2, 1)
);
$this->assertEquals(
4,
$this->getCellByTableClass('table_results', 2, 6)
$this->getCellByTableClass('table_results', 2, 2)
);

/* Assert Row 3 */
$this->assertEquals(
5,
$this->getCellByTableClass('table_results', 3, 5)
$this->getCellByTableClass('table_results', 3, 1)
);
$this->assertEquals(
4,
$this->getCellByTableClass('table_results', 3, 6)
$this->getCellByTableClass('table_results', 3, 2)
);

/* Assert Row 4 */
$this->assertEquals(
7,
$this->getCellByTableClass('table_results', 4, 5)
$this->getCellByTableClass('table_results', 4, 1)
);
$this->assertEquals(
5,
$this->getCellByTableClass('table_results', 4, 6)
$this->getCellByTableClass('table_results', 4, 2)
);

/* Assert Row 5 */
$this->assertEquals(
3,
$this->getCellByTableClass('table_results', 5, 5)
$this->getCellByTableClass('table_results', 5, 1)
);
$this->assertEquals(
5,
$this->getCellByTableClass('table_results', 5, 6)
$this->getCellByTableClass('table_results', 5, 2)
);
}
}

0 comments on commit 2cb2ce7

Please sign in to comment.