From 1d29d8a928a8e01ca103f9e65375a834833539ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 26 Apr 2024 16:41:26 -0300 Subject: [PATCH] Fix Table\CreateTest E2E test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- test/selenium/Table/CreateTest.php | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/test/selenium/Table/CreateTest.php b/test/selenium/Table/CreateTest.php index 3a8259cb8f..1777f071b4 100644 --- a/test/selenium/Table/CreateTest.php +++ b/test/selenium/Table/CreateTest.php @@ -138,13 +138,10 @@ class CreateTest extends TestBase $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( @@ -172,11 +169,9 @@ class CreateTest extends TestBase $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' + )); } }