Fixed modal_ready(). Fixed new selector for facebook login page.
This commit is contained in:
parent
984bb9c4f5
commit
6a0c008a03
2 changed files with 7 additions and 7 deletions
|
@ -424,7 +424,7 @@ class TestCase < Test::Unit::TestCase
|
|||
|
||||
=end
|
||||
|
||||
def modal_ready(params)
|
||||
def modal_ready(params = {})
|
||||
switch_window_focus(params)
|
||||
log('modal_ready', params)
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ class FacebookBrowserTest < TestCase
|
|||
click(css: 'a[href="#channels/facebook"]')
|
||||
|
||||
click(css: '#content .js-configApp')
|
||||
sleep 2
|
||||
modal_ready()
|
||||
set(
|
||||
css: '#content .modal [name=application_id]',
|
||||
value: app_id,
|
||||
|
@ -79,7 +79,7 @@ class FacebookBrowserTest < TestCase
|
|||
)
|
||||
|
||||
click(css: '#content .js-configApp')
|
||||
|
||||
modal_ready()
|
||||
set(
|
||||
css: '#content .modal [name=application_secret]',
|
||||
value: 'wrong',
|
||||
|
@ -122,7 +122,7 @@ class FacebookBrowserTest < TestCase
|
|||
css: '#pass',
|
||||
value: user_pw,
|
||||
)
|
||||
click(css: '#login_button_inline')
|
||||
click(css: '#loginbutton')
|
||||
|
||||
#sleep 10
|
||||
#click(css: 'div[role="dialog"] button[type="submit"][name="__CONFIRM__"]')
|
||||
|
|
Loading…
Reference in a new issue