From 8886d7bada3513d5bbfda9214da1f750c9c7484e Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 24 Aug 2020 15:40:28 +0200 Subject: [PATCH] Maintenance: Fixed typo 'in_fixed_postion' => 'in_fixed_position'. --- spec/support/capybara/common_actions.rb | 2 +- spec/support/capybara/custom_extensions.rb | 4 ++-- spec/system/setup/system_spec.rb | 2 +- spec/system/ticket/zoom_spec.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/support/capybara/common_actions.rb b/spec/support/capybara/common_actions.rb index 065d24983..18d218ec9 100644 --- a/spec/support/capybara/common_actions.rb +++ b/spec/support/capybara/common_actions.rb @@ -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 diff --git a/spec/support/capybara/custom_extensions.rb b/spec/support/capybara/custom_extensions.rb index 414db809f..51689e15b 100644 --- a/spec/support/capybara/custom_extensions.rb +++ b/spec/support/capybara/custom_extensions.rb @@ -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| diff --git a/spec/system/setup/system_spec.rb b/spec/system/setup/system_spec.rb index 97c33751c..bd26bc1c8 100644 --- a/spec/system/setup/system_spec.rb +++ b/spec/system/setup/system_spec.rb @@ -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) diff --git a/spec/system/ticket/zoom_spec.rb b/spec/system/ticket/zoom_spec.rb index 7a0ecd884..9a5814946 100644 --- a/spec/system/ticket/zoom_spec.rb +++ b/spec/system/ticket/zoom_spec.rb @@ -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')