Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
ISAICP-6575: Change tests class.
Browse files Browse the repository at this point in the history
  • Loading branch information
saidatom committed Oct 20, 2021
1 parent 5fe9a78 commit 1b6f54b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/Context/JoinupContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ public function assertTilePresent($heading) {
* @Then I (should )see :number tile(s)
*/
public function assertTileCount($number) {
$results = $this->getSession()->getPage()->findAll('css', '.listing__item--tile .listing__title, article.tile h2');
$results = $this->getSession()->getPage()->findAll('css', '.card .card-title, article.tile h2');
$nr_found = count($results);
if ($nr_found != $number) {
throw new \Exception("Found $nr_found tiles, expected $number");
Expand All @@ -1177,7 +1177,7 @@ public function assertTileCount($number) {
public function assertTileNotPresent($heading) {
// We target the heading with "h2" instead of ".listing__title" because both
// unstyled and styled tiles use h2 as element for their titles.
$results = $this->getSession()->getPage()->findAll('css', '.listing__item--tile h2, article.tile h2');
$results = $this->getSession()->getPage()->findAll('css', '.card h5, article.tile h2');
foreach ($results as $result) {
/** @var \Behat\Mink\Element\Element $result */
if ($result->getText() === $heading) {
Expand Down

0 comments on commit 1b6f54b

Please sign in to comment.