Fixed browser test.
This commit is contained in:
parent
73fdb77178
commit
893272e886
2 changed files with 11 additions and 8 deletions
|
@ -118,10 +118,14 @@ class AgentTicketActionLevel0Test < TestCase
|
||||||
)
|
)
|
||||||
|
|
||||||
# check if text module exists in instance2, for ready to use
|
# check if text module exists in instance2, for ready to use
|
||||||
|
click(
|
||||||
|
browser: browser2,
|
||||||
|
css: '#global-search',
|
||||||
|
)
|
||||||
set(
|
set(
|
||||||
browser: browser2,
|
browser: browser2,
|
||||||
css: '.active div[data-name=body]',
|
css: '.active div[data-name=body]',
|
||||||
value: 'test ::' + random
|
value: 'test ::' + random,
|
||||||
)
|
)
|
||||||
watch_for(
|
watch_for(
|
||||||
browser: browser2,
|
browser: browser2,
|
||||||
|
|
|
@ -1660,11 +1660,11 @@ wait untill text in selector disabppears
|
||||||
user_create(
|
user_create(
|
||||||
:browser => browser2,
|
:browser => browser2,
|
||||||
:data => {
|
:data => {
|
||||||
#:login => 'some login' + random,
|
#login: 'some login' + random,
|
||||||
:firstname => 'Manage Firstname' + random,
|
firstname: 'Manage Firstname' + random,
|
||||||
:lastname => 'Manage Lastname' + random,
|
lastname: 'Manage Lastname' + random,
|
||||||
:email => user_email,
|
email: user_email,
|
||||||
:password => 'some-pass',
|
password: 'some-pass',
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1699,8 +1699,7 @@ wait untill text in selector disabppears
|
||||||
element.send_keys( data[:password] )
|
element.send_keys( data[:password] )
|
||||||
instance.find_elements( { css: '.modal input[name="role_ids"][value="3"]' } )[0].click
|
instance.find_elements( { css: '.modal input[name="role_ids"][value="3"]' } )[0].click
|
||||||
instance.find_elements( { css: '.modal button.js-submit' } )[0].click
|
instance.find_elements( { css: '.modal button.js-submit' } )[0].click
|
||||||
|
sleep 3.5
|
||||||
sleep 2
|
|
||||||
set(
|
set(
|
||||||
browser: instance,
|
browser: instance,
|
||||||
css: '.content .js-search',
|
css: '.content .js-search',
|
||||||
|
|
Loading…
Reference in a new issue