Skip to content

Commit

Permalink
QE: Update test suite code for Ruby 3.x
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Gedon <dgedon@suse.de>
  • Loading branch information
nodeg committed Mar 15, 2023
1 parent 5610edd commit 72bd750
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testsuite/features/support/commonlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def format_detail(message, last_result, report_result)
end

def click_button_and_wait(locator = nil, **options)
click_button(locator, options)
click_button(locator, **options)
begin
raise 'Timeout: Waiting AJAX transition (click link)' unless has_no_css?('.senna-loading', wait: 5)
rescue StandardError, Capybara::ExpectationNotMet => e
Expand All @@ -136,7 +136,7 @@ def click_button_and_wait(locator = nil, **options)
end

def click_link_and_wait(locator = nil, **options)
click_link(locator, options)
click_link(locator, **options)
begin
raise 'Timeout: Waiting AJAX transition (click link)' unless has_no_css?('.senna-loading', wait: 5)
rescue StandardError, Capybara::ExpectationNotMet => e
Expand All @@ -145,7 +145,7 @@ def click_link_and_wait(locator = nil, **options)
end

def click_link_or_button_and_wait(locator = nil, **options)
click_link_or_button(locator, options)
click_link_or_button(locator, **options)
begin
raise 'Timeout: Waiting AJAX transition (click link)' unless has_no_css?('.senna-loading', wait: 5)
rescue StandardError, Capybara::ExpectationNotMet => e
Expand All @@ -166,7 +166,7 @@ def click
end

def find_and_wait_click(*args, **options, &optional_filter_block)
element = find(*args, options, &optional_filter_block)
element = find(*args, **options, &optional_filter_block)
element.extend(CapybaraNodeElementExtension)
end

Expand Down

0 comments on commit 72bd750

Please sign in to comment.