From 7e807f182db397c62875b11759f5fca2f789c99f Mon Sep 17 00:00:00 2001 From: Nathan Lisgo Date: Wed, 5 Feb 2025 10:51:04 +0000 Subject: [PATCH] Specify a correct title for the new page https://github.com/elifesciences/issues/issues/9160 --- test/Controller/BrowseControllerTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/Controller/BrowseControllerTest.php b/test/Controller/BrowseControllerTest.php index f7c69b94..26e4b6ad 100644 --- a/test/Controller/BrowseControllerTest.php +++ b/test/Controller/BrowseControllerTest.php @@ -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'));