• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

curationexperts / laevigata / 08cde213-5978-4890-9b66-c7d91a3748c6

14 May 2025 04:22PM UTC coverage: 97.411% (+2.4%) from 94.984%
08cde213-5978-4890-9b66-c7d91a3748c6

push

circleci

mark-dce
[FIX] Admin Dashboard test is failing intermittently

**ISSUE**
The Admin Dashboard test is failing intermittently, but not
consistently in local test and CI environments.

**DIAGNOSIS**
The test suite is sometimes proceeding to reload the ETD in the
spec before turbolinks had submitted the form data.

**RESOLUTION**
Waiting for content that appears after the page refresh ensures
that the JavaScript on the page has had time to finish executing
and the application has recieved the form submission before
proceeding with additional test steps.

2822 of 2897 relevant lines covered (97.41%)

52.25 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/app/validators/keyword_validator.rb
1
class KeywordValidator < ActiveModel::Validator
4✔
2
  def validate(record)
4✔
3
    return unless current_tab?(record)
91✔
4
    ::Hyrax::EtdForm.keyword_terms.each do |field|
3✔
5
      record.errors.add(field, "#{field} is required") if parsed_data(record)[field.to_s].blank? || parsed_data(record)[field.to_s].first.blank?
6✔
6
    end
7
  end
8

9
  def parsed_data(record)
4✔
10
    return {} unless record.data
101✔
11
    JSON.parse(record.data)
75✔
12
  end
13

14
  def current_tab?(record)
4✔
15
    parsed_data(record)['currentTab'] == "Keywords"
91✔
16
  end
17
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc