mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 13:21:29 +00:00
Fix more specs
This commit is contained in:
parent
3712aebaee
commit
494f341cad
4 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Issues' do
|
||||
let!(:user) { create :user }
|
||||
let!(:user) { create :user }
|
||||
|
||||
scenario 'creation' do
|
||||
sign_in_as user
|
||||
|
|
|
@ -12,7 +12,7 @@ feature "Case insensitive login", js: :true do
|
|||
feature "when a user with mixed-case username signs in" do
|
||||
scenario "with a matching case allows the user to sign in" do
|
||||
fill_login_form(username)
|
||||
click_button submit(:user, :login)
|
||||
find('.login input').trigger('click')
|
||||
|
||||
expect(page).to have_content(I18n.t("login_successful"))
|
||||
|
||||
|
@ -23,7 +23,7 @@ feature "Case insensitive login", js: :true do
|
|||
|
||||
scenario "with a non-matching case allows the user to sign in" do
|
||||
fill_login_form("CASE_INSENSITIVE")
|
||||
click_button submit(:user, :login)
|
||||
find('.login input').trigger('click')
|
||||
|
||||
expect(page).to have_content(I18n.t("login_successful"))
|
||||
|
||||
|
|
|
@ -8,8 +8,7 @@ feature "User Stream Information" do
|
|||
scenario "user updates their stream" do
|
||||
visit user_path(user)
|
||||
expect(page.html).to_not include("<dt>Stream</dt>")
|
||||
fill_login_form(user, password)
|
||||
click_button submit(:user, :login)
|
||||
sign_in_as(user)
|
||||
visit edit_user_path(user)
|
||||
stream_url = "twitch.tv/gold_n"
|
||||
expect(page).to have_content("Stream")
|
||||
|
|
|
@ -41,6 +41,7 @@ Capybara.register_driver :selenium_remote do |app|
|
|||
desired_capabilities: Selenium::WebDriver::Remote::Capabilities.chrome
|
||||
)
|
||||
end
|
||||
Capybara.default_max_wait_time = 8
|
||||
|
||||
#Capybara.javascript_driver = :selenium
|
||||
#Capybara.javascript_driver = :selenium_remote
|
||||
|
|
Loading…
Reference in a new issue