Maintenance: Fixed typo 'in_fixed_postion' => 'in_fixed_position'.
This commit is contained in:
parent
3bcd5e71a1
commit
8886d7bada
4 changed files with 5 additions and 5 deletions
|
@ -184,7 +184,7 @@ module CommonActions
|
||||||
|
|
||||||
wrapper.find('.article-content .textBubble').click
|
wrapper.find('.article-content .textBubble').click
|
||||||
wait(3).until do
|
wait(3).until do
|
||||||
wrapper.find('.article-content-meta .article-meta.top').in_fixed_postion
|
wrapper.find('.article-content-meta .article-meta.top').in_fixed_position
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,14 @@ class Capybara::Node::Element
|
||||||
# @param [Integer] checks the number of performed movement checks
|
# @param [Integer] checks the number of performed movement checks
|
||||||
#
|
#
|
||||||
# @example
|
# @example
|
||||||
# find('.clues-close').in_fixed_postion.click
|
# find('.clues-close').in_fixed_position.click
|
||||||
# => waits till clues moved to final position and performs click afterwards
|
# => waits till clues moved to final position and performs click afterwards
|
||||||
#
|
#
|
||||||
# @raise [RuntimeError] raised in case the element is
|
# @raise [RuntimeError] raised in case the element is
|
||||||
# still moving after max number of checks was passed
|
# still moving after max number of checks was passed
|
||||||
#
|
#
|
||||||
# @return [Capybara::Node::Element] the element/node
|
# @return [Capybara::Node::Element] the element/node
|
||||||
def in_fixed_postion(checks: 100)
|
def in_fixed_position(checks: 100)
|
||||||
|
|
||||||
previous = nil
|
previous = nil
|
||||||
(checks + 1).times do |check|
|
(checks + 1).times do |check|
|
||||||
|
|
|
@ -96,7 +96,7 @@ RSpec.describe 'System setup process', type: :system, set_up: false, authenticat
|
||||||
# expect Dashboard of a fresh system
|
# expect Dashboard of a fresh system
|
||||||
expect(page).to have_css('body', text: 'My Stats')
|
expect(page).to have_css('body', text: 'My Stats')
|
||||||
expect_current_route 'clues'
|
expect_current_route 'clues'
|
||||||
find(:clues_close, wait: 4).in_fixed_postion.click
|
find(:clues_close, wait: 4).in_fixed_position.click
|
||||||
|
|
||||||
# verify organization and fqdn
|
# verify organization and fqdn
|
||||||
click(:manage)
|
click(:manage)
|
||||||
|
|
|
@ -193,7 +193,7 @@ RSpec.describe 'Ticket zoom', type: :system do
|
||||||
all('a[data-type=emailReply]').last.click
|
all('a[data-type=emailReply]').last.click
|
||||||
|
|
||||||
# wait till input box expands completely
|
# wait till input box expands completely
|
||||||
find('.attachmentPlaceholder-label').in_fixed_postion
|
find('.attachmentPlaceholder-label').in_fixed_position
|
||||||
expect(page).not_to have_css('.attachmentPlaceholder-hint', wait: 0)
|
expect(page).not_to have_css('.attachmentPlaceholder-hint', wait: 0)
|
||||||
|
|
||||||
find('.articleNewEdit-body').send_keys('Some reply')
|
find('.articleNewEdit-body').send_keys('Some reply')
|
||||||
|
|
Loading…
Reference in a new issue