You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be cool to have some Helpers for testing authenticated Routes, or an example on how to do this.
Something in the like of:
defmoduleDemoWeb.PageControllerTestdouseDemoWeb.ConnCasedescribe"GET /"dotest" shows Sign In link",%{conn: conn}doconn=get(conn,~p"/")asserthtml_response(conn,200)=~"Sign In"endtest"shows Sign Out link, when authenticated",%{conn: conn}douser=IdentityFixtures.user_fixture()conn=conn|>WebauthnComponents.TestHelpers.authenticate(user)|>get(~p"/")asserthtml_response(conn,200)=~"Sign Out"endendend
The text was updated successfully, but these errors were encountered:
It would be cool to have some Helpers for testing authenticated Routes, or an example on how to do this.
Something in the like of:
The text was updated successfully, but these errors were encountered: