Improved timings for chrome.
This commit is contained in:
parent
477fb1d3da
commit
ce6e414362
2 changed files with 11 additions and 3 deletions
|
@ -53,12 +53,15 @@ class TranslationTest < TestCase
|
|||
css: '#content input.js-Item[data-source="Translations"]',
|
||||
value: 'Übersetzung2',
|
||||
)
|
||||
sleep 5 # wait until nofify is gone
|
||||
click(css: '#global-search')
|
||||
sleep 4 # wait till rerender
|
||||
|
||||
click(css: 'a[href="#dashboard"]')
|
||||
sleep 2 # wait till nav is rendered
|
||||
|
||||
click(css: 'a[href="#manage"]')
|
||||
click(css: 'a[href="#system/translation"]')
|
||||
sleep 4
|
||||
|
||||
match(
|
||||
css: '#content .sidebar',
|
||||
|
@ -84,6 +87,7 @@ class TranslationTest < TestCase
|
|||
)
|
||||
|
||||
click(css: 'a[href="#dashboard"]')
|
||||
sleep 4 # wait till rerender
|
||||
|
||||
click(css: 'a[href="#manage"]')
|
||||
click(css: 'a[href="#system/translation"]')
|
||||
|
|
|
@ -18,9 +18,13 @@ class TestCase < Test::Unit::TestCase
|
|||
browser_profile['intl.accept_languages'] = 'en-US'
|
||||
browser_profile['general.useragent.locale'] = 'en-US'
|
||||
elsif browser == 'chrome'
|
||||
|
||||
# profile are only working on remote selenium
|
||||
if ENV['REMOTE_URL']
|
||||
browser_profile = Selenium::WebDriver::Chrome::Profile.new
|
||||
browser_profile['intl.accept_languages'] = 'en'
|
||||
end
|
||||
end
|
||||
browser_profile
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue