Skip to content

Commit

Permalink
Fix: fails spec after auto fold graph on first visit
Browse files Browse the repository at this point in the history
  • Loading branch information
joko3ono committed Dec 18, 2024
1 parent 2f0872f commit 36e0d1d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion public/js/report/graphical_overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const GraphicalOverview = ({queries, program, plugins, path}) => {
}

return (
<ReportHeader name="Graphical Overview" path={path} renderContent={renderContent} renderable={atLeastTwoHits()} />
<div className="graphical-overview">
<ReportHeader name="Graphical Overview" path={path} renderContent={renderContent} renderable={atLeastTwoHits()} />
</div>
)
}

Expand Down
2 changes: 1 addition & 1 deletion public/sequenceserver-report.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/sequenceserver-report.min.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions spec/features/search_and_results_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ def nucleotide_query
perform_search(query: protein_query,
databases: protein_databases.values_at(0))

## on first visit the graph is not visible
find('.graphical-overview h3').click

## Check that there is a circos vis and unfold it.
expect(page).to have_selector('.circos > .grapher-header > h4', text: 'Chord diagram of queries and their top hits')

Expand Down

0 comments on commit 36e0d1d

Please sign in to comment.