Skip to content

Commit

Permalink
fix test based on new html structure
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Dec 23, 2024
1 parent c4d3fe7 commit 5740ef1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/dashboard/test/integration/sessions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def setup
assert_select 'div.card div.list-group a.list-group-item', 2
assert_select 'div.card div.list-group a.list-group-item' do |links|
# Items are sorted by title
assert_equal 'Jupyter Notebook', links[0]['data-title']
assert_equal 'Jupyter Notebook', links[0]['title']
assert_equal '/batch_connect/sys/bc_jupyter/session_contexts/new', links[0]['href']

assert_equal 'Paraview', links[1]['data-title']
assert_equal 'Paraview', links[1]['title']
assert_equal '/batch_connect/sys/bc_paraview/session_contexts/new', links[1]['href']
end
end
Expand All @@ -65,10 +65,10 @@ def setup
assert_select 'div.card div.list-group a.list-group-item', 2
assert_select 'div.card div.list-group a.list-group-item' do |links|
# Configuration order must be kept
assert_equal 'Jupyter Notebook', links[0]['data-title']
assert_equal 'Jupyter Notebook', links[0]['title']
assert_equal '/batch_connect/sys/bc_jupyter/session_contexts/new', links[0]['href']

assert_equal 'Paraview', links[1]['data-title']
assert_equal 'Paraview', links[1]['title']
assert_equal '/batch_connect/sys/bc_paraview/session_contexts/new', links[1]['href']
end
end
Expand Down

0 comments on commit 5740ef1

Please sign in to comment.