Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Unverified Commit 0cb544bb authored by Francesco SARDARA's avatar Francesco SARDARA
Browse files

OEL-1326: Use correct class for card links.

parent 63368d90
No related branches found
No related tags found
1 merge request!163OEL-1326: Cleaning patterns & paragraphs from OEL-755
......@@ -59,14 +59,14 @@ class ListingAssertion extends Assert {
$this->assertCount(6, $crawler->filter('div.row-cols-1.g-4 > div.col'));
$this->assertStringContainsString('Listing item block title', trim($crawler->filter('h2.bcl-heading')->text()));
$this->assertCount(6, $crawler->filter('h1.card-title'));
$link_element = $crawler->filter('a.text-underline-hover');
$link_element = $crawler->filter('a.standalone');
$this->assertCount(6, $link_element);
$this->assertStringContainsString(
'node/' . $nid,
$link_element->attr('href')
);
$text_element = $crawler->filter('div.card-text');
$this->assertStringContainsString('Item title 1', trim($crawler->filter('h1.card-title > a.text-underline-hover')->text()));
$this->assertStringContainsString('Item title 1', trim($crawler->filter('h1.card-title > a.standalone')->text()));
$this->assertStringContainsString('Label 1 - 1', trim($crawler->filter('span.badge')->eq(0)->text()));
$this->assertStringContainsString('Label 2 - 1', trim($crawler->filter('span.badge')->eq(1)->text()));
$this->assertStringContainsString(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment