1
0

Test pass: test_index_table_header_close_exposure

Allow closing last quantity column
This commit is contained in:
cryptogopher
2021-01-21 11:17:51 +01:00
parent a29eba9861
commit 80b10d108a
4 changed files with 19 additions and 5 deletions

View File

@@ -31,6 +31,15 @@ class TargetsTest < BodyTrackingSystemTestCase
assert_selector 'table#targets thead th', text: quantities(:quantities_proteins).name
end
def test_index_table_header_close_exposure
visit project_targets_path(@project1)
within 'table#targets thead th', text: quantities(:quantities_energy).name do
click_link class: 'icon-close'
end
assert_no_selector 'table#targets thead th', text: quantities(:quantities_energy).name
assert_selector 'table#targets thead th'
end
# TODO: rename to test_new; move checking of default values here
def test_index_show_and_hide_new_target_form
visit project_targets_path(@project1)