class EnterDeclarationsOverlay < CardOverlay
  def declarations
    all('.declaration').map { |d| DeclarationFragment.new d }
  end

  def save_declarations
    click_on 'Save declarations'
  end
end

class EnterDeclarationsOverlay < CardOverlay
  def declarations
    expect(page).to have_css '.declaration'
    all('.declaration').map { |d| DeclarationFragment.new d }
  end

  def save_declarations
    click_on 'Save declarations'
  end
end

Fix intermittent failure in declaration spec.
Fix intermittent failure in declaration spec.
