Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Feb 1, 2024
1 parent c6cd097 commit 449336a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
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,
Expand Down
5 changes: 3 additions & 2 deletions spec/support/stories/profile_stories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ def as_a_registered_user
@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
Expand All @@ -18,7 +19,7 @@ def as_a_logged_in_user
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
Expand Down
1 change: 1 addition & 0 deletions spec/system/new_statuses_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
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
Expand Down

0 comments on commit 449336a

Please sign in to comment.