test for authentication and oidc closes #120 #123
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
question
S
UX research
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: local-it/mitgliederverwaltung#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/oidc_tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -15,6 +15,8 @@ defmodule Mv.Accounts dodefine :list_users, action: :readdefine :update_user, action: :update_userdefine :destroy_user, action: :destroydefine :create_register_with_rauthy, action: :register_with_rauthyDo I get it right, that the actions are just for the tests? Or do they have othe rpurposes?
Yes, this is just used in the tests as far as I can see. This line adds a convenience function for calling the
register_with_rauthyaction like this:Which is used in the
OidcIntegrationTestmodule.This looks great and ready to merge :)
@ -38,0 +52,4 @@)|> render_submit()assert html =~ "Email or password was incorrect"just a thought, how do these kinds of asserts interact with
gettext? as long as we always use english as the locale for our tests, I assume we'll be fine.In general, I try to avoid assertions that depend on arbitrary UI text like this, because it's annoying to update the tests when changing the UI. But I can't really think of an alternative here 😬
We should anyways check if the flash core component which is a div with role "alert" is accessible to screenreaders. But just an idea: it has the css class alert-error and we could test for that. But just a minor thing, overall I agree that the PR is ready to merge :)
109427cf56to8507109631