Merge branch 'develop' of github.com:martini/zammad into develop
This commit is contained in:
commit
f2a54bdddc
3 changed files with 17 additions and 15 deletions
|
@ -33,7 +33,7 @@ class AgentOrganizationProfileTest < TestCase
|
||||||
css: '.active .profile [data-name="note"]',
|
css: '.active .profile [data-name="note"]',
|
||||||
value: note,
|
value: note,
|
||||||
)
|
)
|
||||||
click( css: '.empty-search' )
|
empty_search()
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
# check and change note again in edit screen
|
# check and change note again in edit screen
|
||||||
|
@ -112,9 +112,8 @@ class AgentOrganizationProfileTest < TestCase
|
||||||
css: '.active .profile [data-name="note"]',
|
css: '.active .profile [data-name="note"]',
|
||||||
value: message,
|
value: message,
|
||||||
)
|
)
|
||||||
click(
|
empty_search(
|
||||||
browser: browser1,
|
browser: browser1,
|
||||||
css: '.empty-search',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# verify
|
# verify
|
||||||
|
|
|
@ -30,7 +30,7 @@ class AgentUserProfileTest < TestCase
|
||||||
css: '.active [data-name="note"]',
|
css: '.active [data-name="note"]',
|
||||||
value: 'some note 123',
|
value: 'some note 123',
|
||||||
)
|
)
|
||||||
click( css: '.empty-search' )
|
empty_search()
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
# check and change note again in edit screen
|
# check and change note again in edit screen
|
||||||
|
@ -107,9 +107,8 @@ class AgentUserProfileTest < TestCase
|
||||||
css: '.active [data-name="note"]',
|
css: '.active [data-name="note"]',
|
||||||
value: message,
|
value: message,
|
||||||
)
|
)
|
||||||
click(
|
empty_search(
|
||||||
browser: browser1,
|
browser: browser1,
|
||||||
css: '.empty-search',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
watch_for(
|
watch_for(
|
||||||
|
|
|
@ -1891,6 +1891,7 @@ wait untill text in selector disabppears
|
||||||
# open ticket
|
# open ticket
|
||||||
#instance.find_element(partial_link_text: params[:number] } ).click
|
#instance.find_element(partial_link_text: params[:number] } ).click
|
||||||
instance.execute_script("$(\"#global-search-result a:contains('#{params[:value]}') .nav-tab-icon\").click()")
|
instance.execute_script("$(\"#global-search-result a:contains('#{params[:value]}') .nav-tab-icon\").click()")
|
||||||
|
sleep 1
|
||||||
number = instance.find_elements(css: '.active .ticketZoom-header .ticket-number')[0].text
|
number = instance.find_elements(css: '.active .ticketZoom-header .ticket-number')[0].text
|
||||||
if number !~ /#{params[:number]}/
|
if number !~ /#{params[:number]}/
|
||||||
screenshot(browser: instance, comment: 'ticket_open_by_search_failed')
|
screenshot(browser: instance, comment: 'ticket_open_by_search_failed')
|
||||||
|
@ -1925,6 +1926,7 @@ wait untill text in selector disabppears
|
||||||
# open ticket
|
# open ticket
|
||||||
#instance.find_element(partial_link_text: params[:title] } ).click
|
#instance.find_element(partial_link_text: params[:title] } ).click
|
||||||
instance.execute_script("$(\"#global-search-result a:contains('#{params[:title]}') .nav-tab-icon\").click()")
|
instance.execute_script("$(\"#global-search-result a:contains('#{params[:title]}') .nav-tab-icon\").click()")
|
||||||
|
sleep 1
|
||||||
title = instance.find_elements(css: '.active .ticketZoom-header .ticket-title-update')[0].text
|
title = instance.find_elements(css: '.active .ticketZoom-header .ticket-title-update')[0].text
|
||||||
if title !~ /#{params[:title]}/
|
if title !~ /#{params[:title]}/
|
||||||
screenshot(browser: instance, comment: 'ticket_open_by_title_failed')
|
screenshot(browser: instance, comment: 'ticket_open_by_title_failed')
|
||||||
|
@ -2012,6 +2014,7 @@ wait untill text in selector disabppears
|
||||||
sleep 2
|
sleep 2
|
||||||
#instance.find_element(partial_link_text: params[:value] } ).click
|
#instance.find_element(partial_link_text: params[:value] } ).click
|
||||||
instance.execute_script("$(\"#global-search-result a:contains('#{params[:value]}') .nav-tab-icon\").click()")
|
instance.execute_script("$(\"#global-search-result a:contains('#{params[:value]}') .nav-tab-icon\").click()")
|
||||||
|
sleep 1
|
||||||
name = instance.find_elements(css: '.active h1')[0].text
|
name = instance.find_elements(css: '.active h1')[0].text
|
||||||
if name !~ /#{params[:value]}/
|
if name !~ /#{params[:value]}/
|
||||||
screenshot(browser: instance, comment: 'organization_open_by_search_failed')
|
screenshot(browser: instance, comment: 'organization_open_by_search_failed')
|
||||||
|
@ -2044,6 +2047,7 @@ wait untill text in selector disabppears
|
||||||
sleep 3
|
sleep 3
|
||||||
#instance.find_element(partial_link_text: params[:value]).click
|
#instance.find_element(partial_link_text: params[:value]).click
|
||||||
instance.execute_script("$(\"#global-search-result a:contains('#{params[:value]}') .nav-tab-icon\").click()")
|
instance.execute_script("$(\"#global-search-result a:contains('#{params[:value]}') .nav-tab-icon\").click()")
|
||||||
|
sleep 1
|
||||||
name = instance.find_elements(css: '.active h1')[0].text
|
name = instance.find_elements(css: '.active h1')[0].text
|
||||||
if name !~ /#{params[:value]}/
|
if name !~ /#{params[:value]}/
|
||||||
screenshot(browser: instance, comment: 'user_open_by_search_failed')
|
screenshot(browser: instance, comment: 'user_open_by_search_failed')
|
||||||
|
@ -2353,7 +2357,7 @@ wait untill text in selector disabppears
|
||||||
@last_used_browser = instance
|
@last_used_browser = instance
|
||||||
end
|
end
|
||||||
|
|
||||||
def log(method, params)
|
def log(method, params = {})
|
||||||
return if !@@debug
|
return if !@@debug
|
||||||
return if params[:mute_log]
|
return if params[:mute_log]
|
||||||
puts "#{Time.zone.now}/#{method}: #{params.inspect}"
|
puts "#{Time.zone.now}/#{method}: #{params.inspect}"
|
||||||
|
|
Loading…
Reference in a new issue