mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-04 10:54:30 +08:00
Fix cucmber tests
This commit is contained in:
parent
f729baf884
commit
ca76c0ca0c
3 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,7 @@ Feature: Team settings
|
|||
So that I can manage my team
|
||||
|
||||
Background:
|
||||
Given default screen size
|
||||
Given the "BioSistemika Process" team exists
|
||||
Given the following users are registered
|
||||
| email | password | password_confirmation | full_name | initials |
|
||||
|
|
|
@ -165,3 +165,7 @@ end
|
|||
Then("I wait for {int} sec") do |sec|
|
||||
sleep sec
|
||||
end
|
||||
|
||||
Given('default screen size') do
|
||||
page.driver.browser.manage.window.resize_to(1920, 1080) if defined?(page.driver.browser.manage)
|
||||
end
|
||||
|
|
|
@ -26,7 +26,6 @@ World(Capybara::Email::DSL)
|
|||
Capybara.register_driver :chrome do |app|
|
||||
service = Selenium::WebDriver::Chrome::Service.new(args: ['--whitelisted-ips'])
|
||||
options = Selenium::WebDriver::Chrome::Options.new(args: %w(no-sandbox headless disable-dev-shm-usage disable-gpu))
|
||||
options.add_emulation(device_metrics: { width: 1920, height: 1080, touch: false })
|
||||
|
||||
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options, service: service)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue