Maintenance: Fixed typo 'in_fixed_postion' => 'in_fixed_position'.

This commit is contained in:
Thorsten Eckel 2020-08-24 15:40:28 +02:00
parent 3bcd5e71a1
commit 8886d7bada
4 changed files with 5 additions and 5 deletions

View file

@ -184,7 +184,7 @@ module CommonActions
wrapper.find('.article-content .textBubble').click
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

View file

@ -9,14 +9,14 @@ class Capybara::Node::Element
# @param [Integer] checks the number of performed movement checks
#
# @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
#
# @raise [RuntimeError] raised in case the element is
# still moving after max number of checks was passed
#
# @return [Capybara::Node::Element] the element/node
def in_fixed_postion(checks: 100)
def in_fixed_position(checks: 100)
previous = nil
(checks + 1).times do |check|

View file

@ -96,7 +96,7 @@ RSpec.describe 'System setup process', type: :system, set_up: false, authenticat
# expect Dashboard of a fresh system
expect(page).to have_css('body', text: 'My Stats')
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
click(:manage)

View file

@ -193,7 +193,7 @@ RSpec.describe 'Ticket zoom', type: :system do
all('a[data-type=emailReply]').last.click
# 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)
find('.articleNewEdit-body').send_keys('Some reply')