Skip to content

Commit

Permalink
Remove flakey test for jquery show/hide search results
Browse files Browse the repository at this point in the history
  • Loading branch information
marlo-longley committed Jul 11, 2023
1 parent 575f76f commit 1d5e361
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/toggleableResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ function toggleableResults(searcher) {
var toggleableResults = $('#' + searcher + ' [data-behavior="toggleable-results"]');
var threshold = toggleableResults.data('toggleThreshold');
var toggleButton = $('#' + searcher + '-results-toggle-button');
// if there are 10 search results and the threshold is 3, listItemsBeyondThreshold will contain 7 DOM elements
var listItemsBeyondThreshold = toggleableResults.find('li:nth-child(n+' + (threshold + 1) + ')');

listItemsBeyondThreshold.toggle();
Expand Down
51 changes: 0 additions & 51 deletions spec/features/exhibits_spec.rb

This file was deleted.

0 comments on commit 1d5e361

Please sign in to comment.