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 sleep 6 # till overview is updated
click( css: '#navigation li.overviews a' ) click( text: 'Overviews' )
click( css: '.content.active .sidebar a[href="#ticket/view/all_unassigned"]' ) click( text: 'Unassigned & Open Tickets' )
sleep 4 # till overview is rendered sleep 4 # till overview is rendered
# select both via bulk action # select both via bulk action

View file

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

View file

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