mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 09:23:58 +08:00
Fix cucumber tests
This commit is contained in:
parent
1488f75e26
commit
f729baf884
2 changed files with 5 additions and 4 deletions
|
@ -26,11 +26,11 @@ Feature: Team settings
|
|||
@javascript
|
||||
Scenario: Successfully changes team description
|
||||
Given I'm on "BioSistemika Process" team settings page
|
||||
Then I click on ".description-label" element
|
||||
Then I should not see "I was on Triglav one summer." on ".description-label" element
|
||||
And I fill in "I was on Triglav one summer." in "team_description" textarea field
|
||||
Then I click on ".team-description" element
|
||||
Then I should not see "I was on Triglav one summer." on ".team-description" element
|
||||
Then I fill in "I was on Triglav one summer." in "#team_1_textarea" rich text editor field
|
||||
Then I click "Save" button
|
||||
And I should see "I was on Triglav one summer." on ".description-label" element
|
||||
And I should see "I was on Triglav one summer." on ".team-description" element
|
||||
|
||||
@javascript
|
||||
Scenario: Successfully changes user role
|
||||
|
|
|
@ -26,6 +26,7 @@ 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…
Reference in a new issue