From bc0f1ad48c0e28b97fd4164620eb6c863a202baf Mon Sep 17 00:00:00 2001 From: HazelGrant Date: Fri, 20 Dec 2024 08:42:34 -0500 Subject: [PATCH] Matches code style to existing tests --- .../test/system/batch_connect_widgets_test.rb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/dashboard/test/system/batch_connect_widgets_test.rb b/apps/dashboard/test/system/batch_connect_widgets_test.rb index e4ccd27e8..64bb4ffc6 100644 --- a/apps/dashboard/test/system/batch_connect_widgets_test.rb +++ b/apps/dashboard/test/system/batch_connect_widgets_test.rb @@ -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') @@ -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 @@ -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') @@ -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