Skip to content

Commit

Permalink
Replace div in test with span
Browse files Browse the repository at this point in the history
Div elements and ids are sanitized.
  • Loading branch information
robinkar committed Aug 29, 2024
1 parent 4bcd0b5 commit 5b7acaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ cluster:
description: |
This is a test jupyter app.
form_header: |
<div id="form_header_supports_html">
<span class="form_header_supports_some_html">
This is Markdown with [a link](https://openondemand.org).
<div>
</span>
attributes:
mode:
widget: "radio"
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/test/integration/batch_connect_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def setup

test 'form header is rendered correctly' do
get new_batch_connect_session_context_url('sys/bc_jupyter')
header_link = css_select('div[id="form_header_supports_html"]>a').first
header_link = css_select('span.form_header_supports_some_html>a').first
assert_equal 'a link', header_link.text
assert_equal 'https://openondemand.org', header_link['href']
end
Expand Down

0 comments on commit 5b7acaf

Please sign in to comment.