1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- # encoding: utf-8
- require 'browser_test_helper'
- class PreferencesTest < TestCase
- def test_preferences
- tests = [
- {
- :name => 'preferences',
- :action => [
- {
- :execute => 'click',
- :css => 'a[href="#current_user"]',
- },
- {
- :execute => 'click',
- :css => 'a[href="#profile"]',
- },
- {
- :execute => 'click',
- :css => 'a[href="#profile/language"]',
- },
- {
- :execute => 'select',
- :css => '.language_item select[name="locale"]',
- :value => 'Deutsch',
- },
- {
- :execute => 'click',
- :css => '.content button[type="submit"]',
- },
- {
- :execute => 'wait',
- :value => 6,
- },
- {
- :execute => 'match',
- :css => 'body',
- :value => 'Sprache',
- :match_result => true,
- },
- {
- :execute => 'select',
- :css => '.language_item select[name="locale"]',
- :value => 'English (United States)',
- },
- {
- :execute => 'click',
- :css => '.content button[type="submit"]',
- },
- {
- :execute => 'wait',
- :value => 4,
- },
- {
- :execute => 'match',
- :css => 'body',
- :value => 'Language',
- :match_result => true,
- },
- ],
- },
- ]
- browser_signle_test_with_login(tests)
- end
- end
|