Prevent signups with reserved usernames
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

closes #12
This commit is contained in:
Râu Cao
2023-02-19 12:10:26 +08:00
parent 9407c7a94d
commit f3f967f9f7
2 changed files with 8 additions and 0 deletions

View File

@@ -109,5 +109,11 @@ RSpec.describe "Signup", type: :feature do
expect(page).to have_content("confirm your address")
end
end
scenario "Reserved usernames" do
fill_in "user_cn", with: "accounts"
click_button "Continue"
expect(page).to have_content("Username has already been taken")
end
end
end