Improved set of contenteditable fields.
This commit is contained in:
parent
7831f1c1f8
commit
b62b67293e
5 changed files with 14 additions and 13 deletions
|
@ -32,7 +32,6 @@ class AgentOrganizationProfileTest < TestCase
|
|||
set(
|
||||
css: '.active .profile [data-name="note"]',
|
||||
value: note,
|
||||
contenteditable: true,
|
||||
)
|
||||
click( css: '.empty-search' )
|
||||
sleep 2
|
||||
|
@ -112,7 +111,6 @@ class AgentOrganizationProfileTest < TestCase
|
|||
browser: browser1,
|
||||
css: '.active .profile [data-name="note"]',
|
||||
value: message,
|
||||
contenteditable: true,
|
||||
)
|
||||
click(
|
||||
browser: browser1,
|
||||
|
|
|
@ -190,11 +190,13 @@ class AgentTicketActionLevel0Test < TestCase
|
|||
browser: browser2,
|
||||
css: '.active div[data-name=body]',
|
||||
value: 'test',
|
||||
no_click: true,
|
||||
)
|
||||
set(
|
||||
browser: browser2,
|
||||
css: '.active div[data-name=body]',
|
||||
value: '::' + random,
|
||||
no_click: true,
|
||||
)
|
||||
sendkey(
|
||||
browser: browser2,
|
||||
|
@ -247,6 +249,7 @@ class AgentTicketActionLevel0Test < TestCase
|
|||
browser: browser2,
|
||||
css: '.active div[data-name=body]',
|
||||
value: '::' + random,
|
||||
no_click: true,
|
||||
)
|
||||
|
||||
sendkey(
|
||||
|
|
|
@ -29,8 +29,6 @@ class AgentUserProfileTest < TestCase
|
|||
set(
|
||||
css: '.active [data-name="note"]',
|
||||
value: 'some note 123',
|
||||
contenteditable: true,
|
||||
|
||||
)
|
||||
click( css: '.empty-search' )
|
||||
sleep 2
|
||||
|
@ -108,7 +106,6 @@ class AgentUserProfileTest < TestCase
|
|||
browser: browser1,
|
||||
css: '.active [data-name="note"]',
|
||||
value: message,
|
||||
contenteditable: true,
|
||||
)
|
||||
click(
|
||||
browser: browser1,
|
||||
|
|
|
@ -44,6 +44,7 @@ class CustomerTicketCreateTest < TestCase
|
|||
set(
|
||||
css: '.active [data-name="body"]',
|
||||
value: 'some body 1234 äöüß',
|
||||
no_click: true,
|
||||
)
|
||||
|
||||
task_type(
|
||||
|
|
|
@ -390,7 +390,7 @@ class TestCase < Test::Unit::TestCase
|
|||
slow: false,
|
||||
blur: true,
|
||||
clear: true, # todo | default: true
|
||||
contenteditable: true
|
||||
no_click: true,
|
||||
)
|
||||
|
||||
=end
|
||||
|
@ -402,7 +402,9 @@ class TestCase < Test::Unit::TestCase
|
|||
instance = params[:browser] || @browser
|
||||
|
||||
element = instance.find_elements( { css: params[:css] } )[0]
|
||||
if !params[:no_click]
|
||||
element.click
|
||||
end
|
||||
element.clear
|
||||
|
||||
if !params[:slow]
|
||||
|
|
Loading…
Reference in a new issue