Fixed modal_ready(). Fixed new selector for facebook login page.

This commit is contained in:
Martin Edenhofer 2016-03-23 08:40:05 +01:00
parent 984bb9c4f5
commit 6a0c008a03
2 changed files with 7 additions and 7 deletions

View file

@ -424,7 +424,7 @@ class TestCase < Test::Unit::TestCase
=end =end
def modal_ready(params) def modal_ready(params = {})
switch_window_focus(params) switch_window_focus(params)
log('modal_ready', params) log('modal_ready', params)

View file

@ -46,7 +46,7 @@ class FacebookBrowserTest < TestCase
click(css: 'a[href="#channels/facebook"]') click(css: 'a[href="#channels/facebook"]')
click(css: '#content .js-configApp') click(css: '#content .js-configApp')
sleep 2 modal_ready()
set( set(
css: '#content .modal [name=application_id]', css: '#content .modal [name=application_id]',
value: app_id, value: app_id,
@ -79,7 +79,7 @@ class FacebookBrowserTest < TestCase
) )
click(css: '#content .js-configApp') click(css: '#content .js-configApp')
modal_ready()
set( set(
css: '#content .modal [name=application_secret]', css: '#content .modal [name=application_secret]',
value: 'wrong', value: 'wrong',
@ -122,7 +122,7 @@ class FacebookBrowserTest < TestCase
css: '#pass', css: '#pass',
value: user_pw, value: user_pw,
) )
click(css: '#login_button_inline') click(css: '#loginbutton')
#sleep 10 #sleep 10
#click(css: 'div[role="dialog"] button[type="submit"][name="__CONFIRM__"]') #click(css: 'div[role="dialog"] button[type="submit"][name="__CONFIRM__"]')
@ -187,14 +187,14 @@ class FacebookBrowserTest < TestCase
post = customer_client.put_wall_post(message, {}, page_id) post = customer_client.put_wall_post(message, {}, page_id)
# watch till post is in app # watch till post is in app
click( text: 'Overviews' ) click(text: 'Overviews')
# enable full overviews # enable full overviews
execute( execute(
js: '$(".content.active .sidebar").css("display", "block")', js: '$(".content.active .sidebar").css("display", "block")',
) )
click( text: 'Unassigned & Open' ) click(text: 'Unassigned & Open')
sleep 6 # till overview is rendered sleep 6 # till overview is rendered
watch_for( watch_for(
@ -206,7 +206,7 @@ class FacebookBrowserTest < TestCase
ticket_open_by_title( ticket_open_by_title(
title: hash, title: hash,
) )
click( css: '.content.active [data-type="facebookFeedReply"]' ) click(css: '.content.active [data-type="facebookFeedReply"]')
sleep 2 sleep 2
re_hash = "#{hash}re#{rand(99_999)}" re_hash = "#{hash}re#{rand(99_999)}"