Skip to content

Commit

Permalink
Improve visibility of error cases in one test
Browse files Browse the repository at this point in the history
  • Loading branch information
erkannt committed Feb 18, 2025
1 parent 1947c36 commit e2c08e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Controller/BrowseControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public function it_displays_the_browse_page()

$crawler = $client->request('GET', $this->getUrl());

$this->assertSame(200, $client->getResponse()->getStatusCode());
$errorMessage = $crawler->filter('title')->text();
$this->assertSame(200, $client->getResponse()->getStatusCode(), $errorMessage);
$this->assertSame('0 results found', trim($crawler->filter('.message-bar')->text()));
}

Expand Down

0 comments on commit e2c08e4

Please sign in to comment.