This commit is contained in:
KMY 2024-02-01 13:03:18 +09:00
parent c6cd097705
commit 449336a7f6
3 changed files with 5 additions and 3 deletions

View file

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

View file

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