trabajo-afectivo/test/browser/prefereces_test.rb

48 lines
1.2 KiB
Ruby
Raw Normal View History

2013-02-21 21:56:32 +00:00
# encoding: utf-8
require 'browser_test_helper'
class PreferencesTest < TestCase
def test_preferences
2015-02-22 22:20:05 +00:00
@browser = browser_instance
login(
:username => 'nicole.braun@zammad.org',
:password => 'test',
:url => browser_url,
)
click( :css => 'a[href="#current_user"]' )
click( :css => 'a[href="#profile"]' )
click( :css => 'a[href="#profile/language"]' )
select(
:css => '.language_item select[name="locale"]',
:value => 'Deutsch',
)
click( :css => '.content button[type="submit"]' )
watch_for(
:css => 'body',
:value => 'Sprache',
)
select(
:css => '.language_item select[name="locale"]',
:value => 'English (United States)',
)
click( :css => '.content button[type="submit"]' )
watch_for(
:css => 'body',
:value => 'Language',
)
select(
:css => '.language_item select[name="locale"]',
:value => 'Deutsch',
)
click( :css => '.content button[type="submit"]' )
watch_for(
:css => 'body',
:value => 'Sprache',
)
reload()
watch_for(
:css => 'body',
:value => 'Sprache',
)
2013-02-21 21:56:32 +00:00
end
2015-01-04 21:17:16 +00:00
end