Skip to content

Commit

Permalink
Revert "Merge pull request #587 from Moemen-Gaballah/rename-for-you-t…
Browse files Browse the repository at this point in the history
…o-following"

This reverts commit 60555be, reversing
changes made to bd1bd59.
  • Loading branch information
nunomaduro committed Sep 9, 2024
1 parent 60555be commit 1099e29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/home-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ class="h-6 w-6 xsm:mr-2" />
<a
href="{{ route('home.for_you') }}"
class="{{ request()->routeIs('home.for_you') ? 'bg-pink-600 text-slate-100' : 'text-slate-500 hover:text-slate-100 bg-slate-900 ' }} inline-flex flex-1 items-center justify-center whitespace-nowrap rounded-md border border-transparent px-3 py-2 text-sm font-medium leading-4 transition duration-150 ease-in-out focus:outline-none"
title="{{ __('Following') }}"
title="{{ __('For you') }}"
wire:navigate
wire:transition
>
<x-heroicon-o-heart
class="h-6 w-6 xsm:mr-2" />
<span class="hidden xsm:inline">{{ __('Following') }}</span>
<span class="hidden xsm:inline">{{ __('For you') }}</span>
</a>

<a
Expand Down
6 changes: 3 additions & 3 deletions tests/Http/Home/ForYouTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
use App\Livewire\Home\QuestionsForYou;
use App\Models\User;

it('can see the "following" view', function () {
it('can see the "for you" view', function () {
$user = User::factory()->create();

$response = $this->actingAs($user)->get(route('home.for_you'));

$response->assertOk()
->assertSee('Following')
->assertSee('For you')
->assertSeeLivewire(QuestionsForYou::class);
});

it('guest can see the "following" view', function () {
it('guest can see the "for you" view', function () {
$response = $this->get(route('home.for_you'));

$response->assertOk()
Expand Down

0 comments on commit 1099e29

Please sign in to comment.