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

  def save_declarations
    click_on 'Save declarations'
  end
end
```

Fix intermittent failure in declaration spec.
user
```ruby
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
```
assistant