From 6a509a74376d9116efe66e4f3acfc650c0c551c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 26 Mar 2021 23:58:48 +0100 Subject: [PATCH] Use UTF characters in the BMP in tests ChromeDriver only supports characters in the BMP (Basic Multilingual Plane). One test fails with ChromeDriver because it was entering emojis. I'm using kanji characters instead, although I must admit I'm not sure why such an unusual login was used in the first place. --- spec/system/users_auth_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/users_auth_spec.rb b/spec/system/users_auth_spec.rb index 63663ca7c..c3ad50da5 100644 --- a/spec/system/users_auth_spec.rb +++ b/spec/system/users_auth_spec.rb @@ -46,11 +46,11 @@ describe "Users" do end scenario "Sign in with username" do - create(:user, username: "πŸ‘»πŸ‘½πŸ‘ΎπŸ€–", email: "ash@nostromo.dev", password: "xenomorph") + create(:user, username: "中村広", email: "ash@nostromo.dev", password: "xenomorph") visit "/" click_link "Sign in" - fill_in "user_login", with: "πŸ‘»πŸ‘½πŸ‘ΎπŸ€–" + fill_in "user_login", with: "中村広" fill_in "user_password", with: "xenomorph" click_button "Enter"