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