Skip to content

Commit

Permalink
Merge pull request #587 from Moemen-Gaballah/rename-for-you-to-following
Browse files Browse the repository at this point in the history
enhancement: rename for you to following #453
  • Loading branch information
nunomaduro authored Sep 9, 2024
2 parents bd1bd59 + e536d5f commit 60555be
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="{{ __('For you') }}"
title="{{ __('Following') }}"
wire:navigate
wire:transition
>
<x-heroicon-o-heart
class="h-6 w-6 xsm:mr-2" />
<span class="hidden xsm:inline">{{ __('For you') }}</span>
<span class="hidden xsm:inline">{{ __('Following') }}</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 "for you" view', function () {
it('can see the "following" view', function () {
$user = User::factory()->create();

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

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

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

$response->assertOk()
Expand Down

0 comments on commit 60555be

Please sign in to comment.