Fix test
This commit is contained in:
parent
c6cd097705
commit
449336a7f6
3 changed files with 5 additions and 3 deletions
|
@ -13,7 +13,7 @@ end
|
|||
Capybara.register_driver :headless_chrome do |app|
|
||||
options = Selenium::WebDriver::Chrome::Options.new
|
||||
options.add_argument '--headless=new'
|
||||
options.add_argument '--window-size=1920,1050'
|
||||
options.add_argument '--window-size=1680,1050'
|
||||
|
||||
Capybara::Selenium::Driver.new(
|
||||
app,
|
||||
|
|
|
@ -7,7 +7,8 @@ module ProfileStories
|
|||
@bob = Fabricate(
|
||||
:user,
|
||||
email: email, password: password, confirmed_at: confirmed_at,
|
||||
account: Fabricate(:account, username: 'bob')
|
||||
account: Fabricate(:account, username: 'bob'),
|
||||
locale: 'en'
|
||||
)
|
||||
|
||||
Web::Setting.where(user: bob).first_or_initialize(user: bob).update!(data: { introductionVersion: 2018_12_16_044202 }) if finished_onboarding
|
||||
|
@ -18,7 +19,7 @@ module ProfileStories
|
|||
visit new_user_session_path
|
||||
fill_in 'user_email', with: email
|
||||
fill_in 'user_password', with: password
|
||||
click_on I18n.t('auth.login')
|
||||
click_on 'ログイン' # I18n.t('auth.login')
|
||||
end
|
||||
|
||||
def with_alice_as_local_user
|
||||
|
|
|
@ -15,6 +15,7 @@ describe 'NewStatuses', :sidekiq_inline do
|
|||
before do
|
||||
as_a_logged_in_user
|
||||
visit root_path
|
||||
page.driver.browser.manage.window.resize_to(1600, 1050)
|
||||
end
|
||||
|
||||
it 'can be posted' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue