Fix Table\CreateTest E2E test

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2024-04-26 16:41:26 -03:00
parent 2e4a709d6e
commit 1d29d8a928
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

View File

@ -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'
));
}
}