Skip to content

Conversation

nduitz
Copy link

@nduitz nduitz commented Sep 2, 2025

This test currently asserts on the "Log in" text rendered in the root layout's default navigation.

IMHO this should assert on actual page content instead of nav bar content.

Maybe it was meant to assert on this "Log in":

But that would require the user to be already logged in, not just to be confirmed and would require a different test that I tried to implement.
However the problem with that test is that the assertion is also satisfied by the nav bar content.

@nduitz nduitz changed the title test on page content not page nav content [phx.gen.auth] test on page content not page nav content Sep 2, 2025
@nduitz nduitz changed the title [phx.gen.auth] test on page content not page nav content [phx gen.auth] test on page content not page nav content Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant