Improved error handling.
This commit is contained in:
parent
af2488f4d7
commit
7d475b1ac4
3 changed files with 13 additions and 15 deletions
|
@ -33,12 +33,12 @@ 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
|
||||
click( css: '.active .js-action .icon-arrow-down', fast: true )
|
||||
click( css: '.active .js-action [data-type="edit"]' )
|
||||
click(css: '.active .js-action .icon-arrow-down', fast: true)
|
||||
click(css: '.active .js-action [data-type="edit"]')
|
||||
|
||||
watch_for(
|
||||
css: '.active .modal',
|
||||
|
@ -53,7 +53,7 @@ class AgentOrganizationProfileTest < TestCase
|
|||
css: '.active .modal [data-name="note"]',
|
||||
value: 'some note abc',
|
||||
)
|
||||
click( css: '.active .modal button.js-submit' )
|
||||
click(css: '.active .modal button.js-submit')
|
||||
|
||||
watch_for(
|
||||
css: '.active .profile-window',
|
||||
|
@ -112,9 +112,8 @@ class AgentOrganizationProfileTest < TestCase
|
|||
css: '.active .profile [data-name="note"]',
|
||||
value: message,
|
||||
)
|
||||
click(
|
||||
empty_search(
|
||||
browser: browser1,
|
||||
css: '.empty-search',
|
||||
)
|
||||
|
||||
# verify
|
||||
|
|
|
@ -14,7 +14,7 @@ class AgentUserProfileTest < TestCase
|
|||
tasks_close_all()
|
||||
|
||||
# search and open user
|
||||
user_open_by_search( value: 'Braun' )
|
||||
user_open_by_search(value: 'Braun')
|
||||
|
||||
watch_for(
|
||||
css: '.active .profile-window',
|
||||
|
@ -30,12 +30,12 @@ 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
|
||||
click( css: '.active .js-action .icon-arrow-down' )
|
||||
click( css: '.active .js-action [data-type="edit"]' )
|
||||
click(css: '.active .js-action .icon-arrow-down')
|
||||
click(css: '.active .js-action [data-type="edit"]')
|
||||
|
||||
watch_for(
|
||||
css: '.active .modal',
|
||||
|
@ -50,7 +50,7 @@ class AgentUserProfileTest < TestCase
|
|||
css: '.modal [data-name="note"]',
|
||||
value: 'some note abc',
|
||||
)
|
||||
click( css: '.active .modal button.js-submit' )
|
||||
click(css: '.active .modal button.js-submit')
|
||||
|
||||
watch_for(
|
||||
css: '.active .profile-window',
|
||||
|
@ -68,7 +68,7 @@ class AgentUserProfileTest < TestCase
|
|||
)
|
||||
|
||||
# switch to org tab, verify if ticket is shown
|
||||
user_open_by_search( value: 'Braun' )
|
||||
user_open_by_search(value: 'Braun')
|
||||
watch_for(
|
||||
css: '.active .profile-window',
|
||||
value: 'user profile check ' + message,
|
||||
|
@ -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