diff --git a/resources/views/article.blade.php b/resources/views/article.blade.php index 80161086..9bf3c4ab 100644 --- a/resources/views/article.blade.php +++ b/resources/views/article.blade.php @@ -128,6 +128,11 @@ class="prose min-w-0 max-w-none grow text-gray-600 dark:text-gray-400 dark:prose
diff --git a/resources/views/blog.blade.php b/resources/views/blog.blade.php index 2d19552a..3701bbd4 100644 --- a/resources/views/blog.blade.php +++ b/resources/views/blog.blade.php @@ -157,12 +157,15 @@ class="flex items-center justify-between gap-5 pt-2.5" @if (! $articles->onFirstPage()) - Navigate to - Previous + + Previous @endif @@ -191,12 +194,15 @@ class="inline-block p-1.5 opacity-60 transition duration-200 hover:opacity-100" @if (! $articles->onLastPage()) - Navigate to - Next + Next + @endif diff --git a/tests/Feature/BlogTest.php b/tests/Feature/BlogTest.php index 8bc2e63b..77668b17 100644 --- a/tests/Feature/BlogTest.php +++ b/tests/Feature/BlogTest.php @@ -48,6 +48,17 @@ public function published_articles_are_shown_in_antichronological_order() ]); } + #[Test] + public function the_blog_listing_renders_a_next_pagination_button_when_there_are_more_pages() + { + Article::factory()->count(7)->published()->create(); + + $this->get(route('blog')) + ->assertOk() + ->assertSee('Next') + ->assertSee('page=2'); + } + #[Test] public function scheduled_articles_are_not_shown_on_the_blog_listing() { diff --git a/tests/Feature/SponsorsAndPartnersPlacementTest.php b/tests/Feature/SponsorsAndPartnersPlacementTest.php index 0fe43e16..c7d497fc 100644 --- a/tests/Feature/SponsorsAndPartnersPlacementTest.php +++ b/tests/Feature/SponsorsAndPartnersPlacementTest.php @@ -2,6 +2,7 @@ namespace Tests\Feature; +use App\Models\Article; use Illuminate\Foundation\Testing\RefreshDatabase; use PHPUnit\Framework\Attributes\Test; use Tests\TestCase; @@ -18,6 +19,19 @@ public function the_partners_page_renders_the_partners_section() ->assertSee('Meet Our Partners'); } + #[Test] + public function the_blog_article_mobile_view_shows_sponsors_below_partners() + { + $article = Article::factory()->published()->create(); + + $this->get(route('article', $article)) + ->assertOk() + ->assertSeeInOrder([ + 'Become a Partner', + 'Become a sponsor', + ]); + } + #[Test] public function the_sidebar_partners_list_rotates_through_every_entry_it_is_given() {