Fixed browser tests.

This commit is contained in:
Martin Edenhofer 2015-10-07 14:40:03 +02:00
parent 113d4c6c20
commit 7aa7bcacde
3 changed files with 13 additions and 13 deletions

View file

@ -31,8 +31,8 @@ class AgentTicketOverviewLevel0Test < TestCase
}
)
sleep 6 # till overview is updated
click( css: '#navigation li.overviews a' )
click( css: '.content.active .sidebar a[href="#ticket/view/all_unassigned"]' )
click( text: 'Overviews' )
click( text: 'Unassigned & Open Tickets' )
sleep 4 # till overview is rendered
# select both via bulk action

View file

@ -57,19 +57,19 @@ class PreferencesTest < TestCase
# check language in navbar
watch_for(
css: '#navigation',
css: '.js-menu',
value: 'Übersicht'
)
# check language in dashboard
click( css: '#navigation a[href="#dashboard"]' )
click( css: '.js-menu a[href="#dashboard"]' )
watch_for(
css: '.content.active',
value: 'Meine Statistik'
)
# check language in overview
click( css: '#navigation a[href="#ticket/view"]' )
click( css: '.js-menu a[href="#ticket/view"]' )
watch_for(
css: '.content.active',
value: 'Meine'
@ -171,19 +171,19 @@ class PreferencesTest < TestCase
# check language in navbar
watch_for(
css: '#navigation',
css: '.js-menu',
value: 'Overview'
)
# check language in dashboard
click( css: '#navigation a[href="#dashboard"]' )
click( css: '.js-menu a[href="#dashboard"]' )
watch_for(
css: '.content.active',
value: 'My Stats'
)
# check language in overview
click( css: '#navigation a[href="#ticket/view"]' )
click( css: '.js-menu a[href="#ticket/view"]' )
watch_for(
css: '.content.active',
value: 'My'
@ -297,19 +297,19 @@ class PreferencesTest < TestCase
# check language in navbar
watch_for(
css: '#navigation',
css: '.js-menu',
value: 'Übersicht'
)
# check language in dashboard
click( css: '#navigation a[href="#dashboard"]' )
click( css: '.js-menu a[href="#dashboard"]' )
watch_for(
css: '.content.active',
value: 'Meine Statistik'
)
# check language in overview
click( css: '#navigation a[href="#ticket/view"]' )
click( css: '.js-menu a[href="#ticket/view"]' )
watch_for(
css: '.content.active',
value: 'Meine'

View file

@ -1364,7 +1364,7 @@ wait untill text in selector disabppears
instance = params[:browser] || @browser
instance.find_elements( { css: '#navigation li.overviews a' } )[0].click
instance.find_elements( { css: '.js-overviewsMenuItem' } )[0].click
sleep 1
instance.find_elements( { css: ".content.active .sidebar a[href=\"#{params[:link]}\"]" } )[0].click
sleep 1
@ -1446,7 +1446,7 @@ wait untill text in selector disabppears
instance = params[:browser] || @browser
instance.find_elements( { css: '#navigation li.overviews a' } )[0].click
instance.find_elements( { css: '.js-overviewsMenuItem' } )[0].click
sleep 2
overviews = {}
instance.find_elements( { css: '.content.active .sidebar a[href]' } ).each {|element|