Skip to content

Commit

Permalink
Specify a correct title for the new page
Browse files Browse the repository at this point in the history
  • Loading branch information
nlisgo committed Feb 5, 2025
1 parent d93085a commit 7e807f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/Controller/BrowseControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ public function it_displays_the_browse_page()
*/
public function it_has_metadata()
{
$this->markTestSkipped();
$client = static::createClient();

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

$this->assertSame(200, $client->getResponse()->getStatusCode());

$this->assertSame('Search | eLife', $crawler->filter('title')->text());
$this->markTestSkipped('Valid but currently failing');
$this->assertSame('Browse the latest research | eLife', $crawler->filter('title')->text());
$this->markTestSkipped('All assertions past this need to be evaluated');
$this->assertSame('/search?for=&sort=relevance&order=descending', $crawler->filter('link[rel="canonical"]')->attr('href'));
$this->assertSame('http://localhost/search?for=&sort=relevance&order=descending', $crawler->filter('meta[property="og:url"]')->attr('content'));
$this->assertSame('Search', $crawler->filter('meta[property="og:title"]')->attr('content'));
Expand Down

0 comments on commit 7e807f1

Please sign in to comment.