#17 - set up Laravel Dusk #18

Merged
EwelinaLasowy merged 7 commits from #17-set-up-laravel-dusk into main 2022-01-18 12:22:02 +01:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 40f4afa477 - Show all commits

View File

@@ -38,6 +38,7 @@
</transition> </transition>
<div <div
class="sm:mx-auto sm:w-full sm:max-w-md text-white space-y-4 flex flex-col items-center rounded-lg px-4 py-8" class="sm:mx-auto sm:w-full sm:max-w-md text-white space-y-4 flex flex-col items-center rounded-lg px-4 py-8"
dusk="login-link"
> >
<img <img
class="mx-auto h-50 w-auto" class="mx-auto h-50 w-auto"
@@ -47,7 +48,6 @@
<a <a
href="/login/google/start" href="/login/google/start"
class="inline-flex justify-center py-2 px-6 rounded-md shadow-sm bg-blumilk-500 text-md font-medium text-white hover:bg-blumilk-700" class="inline-flex justify-center py-2 px-6 rounded-md shadow-sm bg-blumilk-500 text-md font-medium text-white hover:bg-blumilk-700"
dusk="login-link"
> >
Zaloguj się za pomocą Google Zaloguj się za pomocą Google
<svg <svg

View File

@@ -32,7 +32,8 @@ class AuthenticationTest extends DuskTestCase
->assertVisible("@user-menu-list") ->assertVisible("@user-menu-list")
->assertSee("Sign out") ->assertSee("Sign out")
->press("Sign out") ->press("Sign out")
->assertPathIs("/"); ->on(new HomePage())
->waitFor("@login-link");
}); });
} }
} }