From 516b47a7895f51e555f3a161be84c7700d956176 Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Sun, 13 Jul 2025 11:56:42 -0400 Subject: [PATCH 1/3] Adding an optional wire_navigate option --- config/devdojo/auth/settings.php | 1 + resources/views/components/elements/link.blade.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/devdojo/auth/settings.php b/config/devdojo/auth/settings.php index e9f139f..7a9f175 100644 --- a/config/devdojo/auth/settings.php +++ b/config/devdojo/auth/settings.php @@ -19,4 +19,5 @@ 'center_align_text' => false, 'social_providers_location' => 'bottom', 'check_account_exists_before_login' => false, + 'include_wire_navigate' => true, ]; diff --git a/resources/views/components/elements/link.blade.php b/resources/views/components/elements/link.blade.php index 31026fe..c33644f 100644 --- a/resources/views/components/elements/link.blade.php +++ b/resources/views/components/elements/link.blade.php @@ -1,6 +1,6 @@ except('wire:navigate') }} - wire:navigate + @if(config('devdojo.auth.settings.include_wire_navigate', true)) wire:navigate @endif > {{ $slot }} \ No newline at end of file From 2d3aaacf578ec9bc33bb92da8f1ad010af63ae68 Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Sun, 13 Jul 2025 17:07:46 -0400 Subject: [PATCH 2/3] Trying to fix the dusk tests --- tests/Browser/ExampleTest.php | 10 +++++++++ tests/Browser/Pages/HomePage.php | 36 ++++++++++++++++++++++++++++++++ tests/Browser/Pages/Page.php | 20 ++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 tests/Browser/ExampleTest.php create mode 100644 tests/Browser/Pages/HomePage.php create mode 100644 tests/Browser/Pages/Page.php diff --git a/tests/Browser/ExampleTest.php b/tests/Browser/ExampleTest.php new file mode 100644 index 0000000..89a0064 --- /dev/null +++ b/tests/Browser/ExampleTest.php @@ -0,0 +1,10 @@ +browse(function (Browser $browser) { + $browser->visit('/') + ->assertSee('Laravel'); + }); +}); diff --git a/tests/Browser/Pages/HomePage.php b/tests/Browser/Pages/HomePage.php new file mode 100644 index 0000000..45d9283 --- /dev/null +++ b/tests/Browser/Pages/HomePage.php @@ -0,0 +1,36 @@ + + */ + public function elements(): array + { + return [ + '@element' => '#selector', + ]; + } +} diff --git a/tests/Browser/Pages/Page.php b/tests/Browser/Pages/Page.php new file mode 100644 index 0000000..eb9a2de --- /dev/null +++ b/tests/Browser/Pages/Page.php @@ -0,0 +1,20 @@ + + */ + public static function siteElements(): array + { + return [ + '@element' => '#selector', + ]; + } +} From 95cbdcccb815019c483978c2754c6f2af8ddb952 Mon Sep 17 00:00:00 2001 From: tnylea <601261+tnylea@users.noreply.github.com> Date: Sun, 13 Jul 2025 21:08:17 +0000 Subject: [PATCH 3/3] Fixes coding style --- tests/Browser/ExampleTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Browser/ExampleTest.php b/tests/Browser/ExampleTest.php index 89a0064..76652f5 100644 --- a/tests/Browser/ExampleTest.php +++ b/tests/Browser/ExampleTest.php @@ -5,6 +5,6 @@ test('basic example', function () { $this->browse(function (Browser $browser) { $browser->visit('/') - ->assertSee('Laravel'); + ->assertSee('Laravel'); }); });