Improved timings.
This commit is contained in:
parent
34c4b7bd1b
commit
6a1beeb890
2 changed files with 22 additions and 22 deletions
|
@ -29,7 +29,7 @@ class AgentTicketActionLevel6Test < TestCase
|
|||
sleep 1
|
||||
|
||||
# submit form
|
||||
click( css: '.content.active .js-submit' )
|
||||
click(css: '.content.active .js-submit')
|
||||
sleep 2
|
||||
|
||||
# check warning
|
||||
|
@ -45,16 +45,16 @@ class AgentTicketActionLevel6Test < TestCase
|
|||
)
|
||||
|
||||
# submit form
|
||||
click( css: '.content.active .js-submit' )
|
||||
click(css: '.content.active .js-submit')
|
||||
sleep 5
|
||||
|
||||
# no warning
|
||||
#alert = @browser.switch_to.alert
|
||||
|
||||
# check if ticket is shown and attachment exists
|
||||
location_check( url: '#ticket/zoom/' )
|
||||
sleep 2
|
||||
ticket_number = @browser.find_elements( { css: '.active .ticketZoom-header .ticket-number' } )[0].text
|
||||
location_check(url: '#ticket/zoom/')
|
||||
sleep 4
|
||||
ticket_number = @browser.find_elements({ css: '.active .ticketZoom-header .ticket-number' } )[0].text
|
||||
match(
|
||||
css: '.active .ticket-article-item:nth-child(1) .attachments',
|
||||
value: 'upload2.jpg',
|
||||
|
@ -226,7 +226,7 @@ class AgentTicketActionLevel6Test < TestCase
|
|||
)
|
||||
|
||||
# check if customer has changed in second browser
|
||||
click( browser: browser1, css: '.active .tabsSidebar-tab[data-tab="customer"]')
|
||||
click(browser: browser1, css: '.active .tabsSidebar-tab[data-tab="customer"]')
|
||||
watch_for(
|
||||
browser: browser1,
|
||||
css: '.active .tabsSidebar',
|
||||
|
@ -238,14 +238,14 @@ class AgentTicketActionLevel6Test < TestCase
|
|||
#
|
||||
|
||||
# modify customer
|
||||
click( browser: browser1, css: '.active .sidebar[data-tab="customer"] .js-actions .dropdown-toggle')
|
||||
click( browser: browser1, css: '.active .sidebar[data-tab="customer"] .js-actions [data-type="customer-edit"]')
|
||||
click(browser: browser1, css: '.active .sidebar[data-tab="customer"] .js-actions .dropdown-toggle')
|
||||
click(browser: browser1, css: '.active .sidebar[data-tab="customer"] .js-actions [data-type="customer-edit"]')
|
||||
sleep 2
|
||||
set( browser: browser1, css: '.modal [name="address"]', value: 'some new address' )
|
||||
click( browser: browser1, css: '.modal .js-submit')
|
||||
set(browser: browser1, css: '.modal [name="address"]', value: 'some new address')
|
||||
click(browser: browser1, css: '.modal .js-submit')
|
||||
|
||||
# verify is customer has chnaged other browser too
|
||||
click( browser: browser2, css: '.active .tabsSidebar-tab[data-tab="customer"]')
|
||||
click(browser: browser2, css: '.active .tabsSidebar-tab[data-tab="customer"]')
|
||||
watch_for(
|
||||
browser: browser2,
|
||||
css: '.active .sidebar[data-tab="customer"]',
|
||||
|
@ -257,18 +257,18 @@ class AgentTicketActionLevel6Test < TestCase
|
|||
#
|
||||
|
||||
# change org of customer, check if org is shown in sidebar
|
||||
click( browser: browser1, css: '.active .sidebar[data-tab="customer"] .js-actions .dropdown-toggle')
|
||||
click( browser: browser1, css: '.active .sidebar[data-tab="customer"] .js-actions [data-type="customer-edit"]')
|
||||
click(browser: browser1, css: '.active .sidebar[data-tab="customer"] .js-actions .dropdown-toggle')
|
||||
click(browser: browser1, css: '.active .sidebar[data-tab="customer"] .js-actions [data-type="customer-edit"]')
|
||||
sleep 2
|
||||
set( browser: browser1, css: '.modal .js-input', value: 'zammad' )
|
||||
click( browser: browser1, css: '.modal .js-input' )
|
||||
click( browser: browser1, css: '.modal .js-option' )
|
||||
set(browser: browser1, css: '.modal .js-input', value: 'zammad')
|
||||
click(browser: browser1, css: '.modal .js-input')
|
||||
click(browser: browser1, css: '.modal .js-option')
|
||||
|
||||
click( browser: browser1, css: '.modal .js-submit')
|
||||
click(browser: browser1, css: '.modal .js-submit')
|
||||
|
||||
# check if org has changed in second browser
|
||||
sleep 3
|
||||
click( browser: browser2, css: '.active .tabsSidebar-tab[data-tab="organization"]')
|
||||
click(browser: browser2, css: '.active .tabsSidebar-tab[data-tab="organization"]')
|
||||
watch_for(
|
||||
browser: browser2,
|
||||
css: '.active .sidebar[data-tab="organization"]',
|
||||
|
|
|
@ -56,9 +56,9 @@ class SessionCollectionsTest < ActiveSupport::TestCase
|
|||
customer1.roles = roles
|
||||
customer1.save
|
||||
|
||||
collection_client1 = Sessions::Backend::Collections.new(agent1, {}, nil, 'aaa-1', 2)
|
||||
collection_client2 = Sessions::Backend::Collections.new(agent2, {}, nil, 'bbb-2', 2)
|
||||
collection_client2 = Sessions::Backend::Collections.new(customer1, {}, nil, 'ccc-2', 2)
|
||||
collection_client1 = Sessions::Backend::Collections.new(agent1, {}, nil, 'aaa-1', 3)
|
||||
collection_client2 = Sessions::Backend::Collections.new(agent2, {}, nil, 'bbb-2', 3)
|
||||
collection_client2 = Sessions::Backend::Collections.new(customer1, {}, nil, 'ccc-2', 3)
|
||||
|
||||
# get whole collections
|
||||
result1 = collection_client1.push
|
||||
|
@ -95,7 +95,7 @@ class SessionCollectionsTest < ActiveSupport::TestCase
|
|||
# change collection
|
||||
group = Group.first
|
||||
group.touch
|
||||
sleep 3
|
||||
sleep 4
|
||||
|
||||
# get whole collections
|
||||
result1 = collection_client1.push
|
||||
|
|
Loading…
Reference in a new issue