This commit is contained in:
EwelinaLasowy 2022-01-18 09:48:13 +01:00
parent 6f87647cb3
commit 40f4afa477
2 changed files with 3 additions and 2 deletions

View File

@ -38,6 +38,7 @@
</transition>
<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"
dusk="login-link"
>
<img
class="mx-auto h-50 w-auto"
@ -47,7 +48,6 @@
<a
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"
dusk="login-link"
>
Zaloguj się za pomocą Google
<svg

View File

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