Browse Source

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

Thorsten Eckel 4 years ago
parent
commit
8886d7bada

+ 1 - 1
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
 

+ 2 - 2
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|

+ 1 - 1
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)

+ 1 - 1
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')