# Allow Capybara tests to properly interact with aaf-lipstick's
# `delete_button_tag`
module DeleteButton
  def click_delete_button(text: 'Delete')
    button = find('div.ui.button', text: text)
    button.click
    expect(button).to have_css('.menu.visible:not(.animating)')
    click_link('Confirm Delete')
  end
end

# Allow Capybara tests to properly interact with aaf-lipstick's
# `delete_button_tag`
module DeleteButton
  def click_delete_button(text: 'Delete')
    button = find('div.ui.button', text: text)
    button.click
    expect(button).to have_css('.menu.visible:not(.animating)')
    click_link("Confirm #{text}")
  end
end

Fix delete button clicker in Capybara tests
Fix delete button clicker in Capybara tests

After ausaccessfed/aaf-lipstick#14 these tests were expecting the old
(incorrect) 'Confirm Delete' button text which is no longer present.

Fixes test failures after upgrading the lipstick library.
