Improved error handling.
This commit is contained in:
parent
af2488f4d7
commit
7d475b1ac4
3 changed files with 13 additions and 15 deletions
|
@ -33,7 +33,7 @@ class AgentOrganizationProfileTest < TestCase
|
|||
css: '.active .profile [data-name="note"]',
|
||||
value: note,
|
||||
)
|
||||
click( css: '.empty-search' )
|
||||
empty_search()
|
||||
sleep 2
|
||||
|
||||
# check and change note again in edit screen
|
||||
|
@ -112,9 +112,8 @@ class AgentOrganizationProfileTest < TestCase
|
|||
css: '.active .profile [data-name="note"]',
|
||||
value: message,
|
||||
)
|
||||
click(
|
||||
empty_search(
|
||||
browser: browser1,
|
||||
css: '.empty-search',
|
||||
)
|
||||
|
||||
# verify
|
||||
|
|
|
@ -30,7 +30,7 @@ class AgentUserProfileTest < TestCase
|
|||
css: '.active [data-name="note"]',
|
||||
value: 'some note 123',
|
||||
)
|
||||
click( css: '.empty-search' )
|
||||
empty_search()
|
||||
sleep 2
|
||||
|
||||
# check and change note again in edit screen
|
||||
|
@ -107,9 +107,8 @@ class AgentUserProfileTest < TestCase
|
|||
css: '.active [data-name="note"]',
|
||||
value: message,
|
||||
)
|
||||
click(
|
||||
empty_search(
|
||||
browser: browser1,
|
||||
css: '.empty-search',
|
||||
)
|
||||
|
||||
watch_for(
|
||||
|
|
|
@ -2353,7 +2353,7 @@ wait untill text in selector disabppears
|
|||
@last_used_browser = instance
|
||||
end
|
||||
|
||||
def log(method, params)
|
||||
def log(method, params = {})
|
||||
return if !@@debug
|
||||
return if params[:mute_log]
|
||||
puts "#{Time.zone.now}/#{method}: #{params.inspect}"
|
||||
|
|
Loading…
Reference in a new issue