Skip to content

Commit

Permalink
Mark tests as expected to pass and update rubocop config (#7278)
Browse files Browse the repository at this point in the history
* Update rubocop config - Ignore coumments when counting lines in class, method, moudle

* Expect Chrome to pass double-click test
  • Loading branch information
twalpole committed Jun 11, 2019
1 parent 965a996 commit e55f334
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion rb/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ Metrics/CyclomaticComplexity:
- 'spec/integration/selenium/webdriver/spec_support/test_environment.rb'

Metrics/ClassLength:
Max: 140
CountComments: false
Max: 150
Exclude:
- 'lib/selenium/webdriver/firefox/profile.rb'
- 'lib/selenium/webdriver/remote/bridge.rb'
Expand All @@ -98,11 +99,13 @@ Metrics/LineLength:
- '^\s*#'

Metrics/ModuleLength:
CountComments: false
Exclude:
- 'lib/selenium/webdriver/common/platform.rb'
- 'spec/**/*'

Metrics/MethodLength:
CountComments: false
Max: 33
Exclude:
- 'lib/selenium/webdriver/chrome/driver.rb'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module WebDriver
expect(text).to eq('Dropped!')
end

it 'double clicks an element', except: {browser: %i[chrome safari safari_preview]} do
it 'double clicks an element', except: {browser: %i[safari safari_preview]} do
driver.navigate.to url_for('javascriptPage.html')
element = driver.find_element(id: 'doubleClickField')

Expand Down

0 comments on commit e55f334

Please sign in to comment.