Skip to content

Commit 447d80c

Browse files
cillianmkllnk
authored andcommitted
Fix spec due to switch to email type field
1 parent 67853bb commit 447d80c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/system/admin/enterprises_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,10 @@
640640
end
641641

642642
it "shows an error message if the email is invalid" do
643+
expect_any_instance_of(ValidEmail2::Address).to receive(:valid_mx?).and_return(false)
644+
643645
within ".reveal-modal" do
644-
tomselect_fill_in "user_invitation[email]", with: "invalid_email"
646+
tomselect_fill_in "user_invitation[email]", with: "newuser@example.invaliddomain"
645647

646648
expect do
647649
click_button "Invite"

0 commit comments

Comments
 (0)