Skip to content

Commit

Permalink
Matches code style to existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HazelGrant committed Dec 20, 2024
1 parent eeba467 commit bc0f1ad
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions apps/dashboard/test/system/batch_connect_widgets_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def make_bc_app(dir, form)
options = find_all("#batch_connect_session_context_node_type option")

assert_equal "standard", options[0]["innerHTML"]
assert_equal "gpu", options[1]["innerHTML"]
assert_equal '', find_option_style('node_type', 'gpu')

# select gpu, to test that it's deselected properly when pitzer is selected
select('gpu', from: 'batch_connect_session_context_node_type')
Expand All @@ -477,10 +477,8 @@ def make_bc_app(dir, form)
select('pitzer', from: 'batch_connect_session_context_cluster')
options = find_all("#batch_connect_session_context_node_type option")

display_property = { "display" => "none" }

assert_equal "standard", options[0]["innerHTML"]
assert_equal display_property, options[1].style('display')
assert_equal 'display: none;', find_option_style('node_type', 'gpu')

# value of node_type has gone back to standard
assert_equal 'standard', find('#batch_connect_session_context_node_type').value
Expand Down Expand Up @@ -522,10 +520,8 @@ def make_bc_app(dir, form)
select('owens', from: 'batch_connect_session_context_cluster')
options = find_all("#batch_connect_session_context_node_type option")

display_property = { "display" => "block" }

assert_equal "standard", options[0]["innerHTML"]
assert_equal display_property, options[1].style('display')
assert_equal '', find_option_style('node_type', 'gpu')

# select gpu, to test that it's deselected properly when pitzer is selected
select('gpu', from: 'batch_connect_session_context_node_type')
Expand All @@ -534,10 +530,8 @@ def make_bc_app(dir, form)
select('pitzer', from: 'batch_connect_session_context_cluster')
options = find_all("#batch_connect_session_context_node_type option")

display_property = { "display" => "none" }

assert_equal "standard", options[0]["innerHTML"]
assert_equal display_property, options[1].style('display')
assert_equal 'display: none;', find_option_style('node_type', 'gpu')

# value of node_type has gone back to standard
assert_equal 'standard', find('#batch_connect_session_context_node_type').value
Expand Down

0 comments on commit bc0f1ad

Please sign in to comment.