Skip to content

Commit

Permalink
Fix Table\CreateTest 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 2e4a709 commit 1d29d8a
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions test/selenium/Table/CreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,10 @@ private function tableStructureAssertions(): void
$this->getCellByTableId('tablestructure', 1, 10)
);

$this->assertFalse(
$this->isElementPresent(
'cssSelector',
'table#tablestructure tbody tr:nth-child(1) "
. "ul.table-structure-actions li.primary a'
)
);
self::assertFalse($this->isElementPresent(
'cssSelector',
'table#tablestructure tbody tr:nth-child(1) ul li.primary a'
));

// make assertions for second row
$this->assertStringContainsString(
Expand Down Expand Up @@ -172,11 +169,9 @@ private function tableStructureAssertions(): void
$this->getCellByTableId('tablestructure', 2, 8)
);

$this->assertFalse(
$this->isElementPresent(
'cssSelector',
'css=ul.table-structure-actions:nth-child(2) li.primary a'
)
);
self::assertTrue($this->isElementPresent(
'cssSelector',
'table#tablestructure tbody tr:nth-child(2) ul li.primary a'
));
}
}

0 comments on commit 1d29d8a

Please sign in to comment.