Fix spec due to switch to email type field

This commit is contained in:
Cillian O'Ruanaidh
2026-02-28 14:54:04 +00:00
committed by Maikel Linke
parent 67853bb976
commit 447d80c960

View File

@@ -640,8 +640,10 @@ RSpec.describe '
end
it "shows an error message if the email is invalid" do
expect_any_instance_of(ValidEmail2::Address).to receive(:valid_mx?).and_return(false)
within ".reveal-modal" do
tomselect_fill_in "user_invitation[email]", with: "invalid_email"
tomselect_fill_in "user_invitation[email]", with: "newuser@example.invaliddomain"
expect do
click_button "Invite"