optimizations
This commit is contained in:
@@ -20,40 +20,40 @@ it('GET /explore contains "Explore" heading', function () {
|
||||
$this->get('/explore')->assertOk()->assertSee('Explore', false);
|
||||
});
|
||||
|
||||
it('GET /explore/wallpapers returns 200', function () {
|
||||
$this->get('/explore/wallpapers')->assertOk();
|
||||
it('GET /explore/wallpapers redirects to the canonical /wallpapers route', function () {
|
||||
$this->get('/explore/wallpapers')->assertRedirect('/wallpapers')->assertStatus(301);
|
||||
});
|
||||
|
||||
it('GET /explore/skins returns 200', function () {
|
||||
$this->get('/explore/skins')->assertOk();
|
||||
it('GET /explore/skins redirects to the canonical /skins route', function () {
|
||||
$this->get('/explore/skins')->assertRedirect('/skins')->assertStatus(301);
|
||||
});
|
||||
|
||||
it('GET /explore/photography returns 200', function () {
|
||||
$this->get('/explore/photography')->assertOk();
|
||||
it('GET /explore/photography redirects to the canonical /photography route', function () {
|
||||
$this->get('/explore/photography')->assertRedirect('/photography')->assertStatus(301);
|
||||
});
|
||||
|
||||
it('GET /explore/artworks returns 200', function () {
|
||||
$this->get('/explore/artworks')->assertOk();
|
||||
});
|
||||
|
||||
it('GET /explore/other returns 200', function () {
|
||||
$this->get('/explore/other')->assertOk();
|
||||
it('GET /explore/other redirects to the canonical /other route', function () {
|
||||
$this->get('/explore/other')->assertRedirect('/other')->assertStatus(301);
|
||||
});
|
||||
|
||||
it('GET /explore/wallpapers/trending returns 200', function () {
|
||||
$this->get('/explore/wallpapers/trending')->assertOk();
|
||||
it('GET /explore/wallpapers/trending redirects to the canonical /wallpapers route', function () {
|
||||
$this->get('/explore/wallpapers/trending')->assertRedirect('/wallpapers')->assertStatus(301);
|
||||
});
|
||||
|
||||
it('GET /explore/wallpapers/latest returns 200', function () {
|
||||
$this->get('/explore/wallpapers/latest')->assertOk();
|
||||
it('GET /explore/wallpapers/latest redirects to the canonical sorted /wallpapers route', function () {
|
||||
$this->get('/explore/wallpapers/latest')->assertRedirect('/wallpapers?sort=latest')->assertStatus(301);
|
||||
});
|
||||
|
||||
it('GET /explore/wallpapers/best returns 200', function () {
|
||||
$this->get('/explore/wallpapers/best')->assertOk();
|
||||
it('GET /explore/wallpapers/best redirects to the canonical sorted /wallpapers route', function () {
|
||||
$this->get('/explore/wallpapers/best')->assertRedirect('/wallpapers?sort=top-rated')->assertStatus(301);
|
||||
});
|
||||
|
||||
it('GET /explore/wallpapers/new-hot returns 200', function () {
|
||||
$this->get('/explore/wallpapers/new-hot')->assertOk();
|
||||
it('GET /explore/wallpapers/new-hot redirects to the canonical sorted /wallpapers route', function () {
|
||||
$this->get('/explore/wallpapers/new-hot')->assertRedirect('/wallpapers?sort=fresh')->assertStatus(301);
|
||||
});
|
||||
|
||||
it('/explore pages include canonical link tag', function () {
|
||||
@@ -66,8 +66,8 @@ it('/explore pages set robots index,follow', function () {
|
||||
expect($html)->toContain('index,follow');
|
||||
});
|
||||
|
||||
it('/explore pages include breadcrumb JSON-LD', function () {
|
||||
$html = $this->get('/explore/wallpapers')->assertOk()->getContent();
|
||||
it('/explore hub page includes breadcrumb JSON-LD', function () {
|
||||
$html = $this->get('/explore')->assertOk()->getContent();
|
||||
expect($html)->toContain('BreadcrumbList');
|
||||
});
|
||||
|
||||
@@ -81,8 +81,8 @@ it('GET /discover redirects to /discover/trending with 301', function () {
|
||||
$this->get('/discover')->assertRedirect('/discover/trending')->assertStatus(301);
|
||||
});
|
||||
|
||||
it('GET /sections redirects to /categories with 301', function () {
|
||||
$this->get('/sections')->assertRedirect('/categories')->assertStatus(301);
|
||||
it('GET /sections returns the live sections page', function () {
|
||||
$this->get('/sections')->assertOk()->assertSee('Browse Sections', false);
|
||||
});
|
||||
|
||||
it('GET /browse-categories redirects to /categories with 301', function () {
|
||||
|
||||
Reference in New Issue
Block a user