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.
This commit is contained in:
Javi Martín
2021-03-26 23:58:48 +01:00
parent 71053fd334
commit 6a509a7437

View File

@@ -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"