Skip to content

Commit

Permalink
Merge pull request #15358 from opf/chore-remove-unnnecessary-method-arg
Browse files Browse the repository at this point in the history
Remove unnecessary argument from Pages::Grid#enabld_add_widget_mode
  • Loading branch information
ulferts committed Apr 23, 2024
2 parents 04d3485 + ca286b4 commit 2767ee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/grids/spec/support/pages/grid.rb
Expand Up @@ -80,18 +80,18 @@ def area_of(row_number, column_number, location = :within)
private

def within_add_widget_modal(row_number, column_number, location, &)
enable_add_widget_mode

area = area_of(row_number, column_number, location)
area.hover

enable_add_widget_mode_for(area)

add_widget_button = area.find(".grid--widget-add")
add_widget_button.click

within(".spot-modal", &)
end

def enable_add_widget_mode_for(area)
def enable_add_widget_mode
within('.toolbar-items') do
button = find_button "Add widget"
button.click if button[:class].exclude? "-active"
Expand Down

0 comments on commit 2767ee9

Please sign in to comment.