Skip to content

Commit

Permalink
test: Update sample table assertions to check input values instead of…
Browse files Browse the repository at this point in the history
… text
  • Loading branch information
joshsadam committed Dec 17, 2024
1 parent ea3fbfc commit 0b9033e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/system/groups/samples_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -391,16 +391,16 @@ def retrieve_puids
assert_selector 'table thead tr th', count: 9
within('table tbody tr:first-child') do
assert_text @sample30.name
assert_selector 'td:nth-child(7)', text: 'value1'
assert_selector 'td:nth-child(8)', text: 'value2'
assert_selector 'td:nth-child(9)', text: ''
assert_selector 'td:nth-child(7) input[value="value1"]'
assert_selector 'td:nth-child(8) input[value="value2"]'
assert_selector 'td:nth-child(9) input[type="submit"]'
end

within('table tbody tr:nth-child(3)') do
assert_text @sample28.name
assert_selector 'td:nth-child(7)', text: ''
assert_selector 'td:nth-child(8)', text: ''
assert_selector 'td:nth-child(9)', text: 'unique_value'
assert_selector 'td:nth-child(7) input[type="submit"]'
assert_selector 'td:nth-child(8) input[type="submit"]'
assert_selector 'td:nth-child(9) input[value="unique_value"]'
end

find('label', text: I18n.t('projects.samples.shared.metadata_toggle.label')).click
Expand Down

0 comments on commit 0b9033e

Please sign in to comment.