From d7c6450cd538bace8be97e35ed5e0078025a44a8 Mon Sep 17 00:00:00 2001 From: Udo <379915+optikfluffel@users.noreply.github.com> Date: Sat, 8 Jun 2024 21:35:08 +0200 Subject: [PATCH] Check for pushed "registration-challenge" event in RegistrationComponentTest (#65) * Check for pushed "registration-challenge" event in RegistrationComponentTest * add basic `assert_push_event/3` call to `authentication_component_test.exs` --------- Co-authored-by: Owen Bickford --- test/webauthn_components/authentication_component_test.exs | 6 +++++- test/webauthn_components/registration_component_test.exs | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/test/webauthn_components/authentication_component_test.exs b/test/webauthn_components/authentication_component_test.exs index bdc89ab6..b8211f66 100644 --- a/test/webauthn_components/authentication_component_test.exs +++ b/test/webauthn_components/authentication_component_test.exs @@ -19,10 +19,14 @@ defmodule WebauthnComponents.AuthenticationComponentTest do end describe "handle_event/3 - authenticate" do - test "sends authentication challenge to client", %{element: element} do + test "sends authentication challenge to client", %{element: element, view: view} do clicked_element = render_click(element) assert clicked_element =~ "