diff --git a/test/browser/translation_test.rb b/test/browser/translation_test.rb index 560fc4f09..147d12d52 100644 --- a/test/browser/translation_test.rb +++ b/test/browser/translation_test.rb @@ -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"]') diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index d4da873f5..82c4c41fc 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -18,8 +18,12 @@ class TestCase < Test::Unit::TestCase browser_profile['intl.accept_languages'] = 'en-US' browser_profile['general.useragent.locale'] = 'en-US' elsif browser == 'chrome' - browser_profile = Selenium::WebDriver::Chrome::Profile.new - browser_profile['intl.accept_languages'] = 'en' + + # 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