Skip to content

Commit

Permalink
fixup! Add new table with collapsible locations for banks with many l…
Browse files Browse the repository at this point in the history
…ocations
  • Loading branch information
ChaelCodes committed Jul 29, 2023
1 parent 6970aae commit 8ebb337
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/system/item_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@
expect(tab_items_quantity_location_text).not_to have_content num_pullups_second_donation
expect(tab_items_quantity_location_text).not_to have_content num_tampons_in_donation
expect(tab_items_quantity_location_text).not_to have_content num_tampons_second_donation
find("td", text: item_tampons.name).find(:xpath, "..").click
expandable_row = find("td", text: item_tampons.name).find(:xpath, "..")
expect(expandable_row).to have_css('[aria-expanded="false"]')
expandable_row.click
find('[aria-expanded="true"]') # await expanded section
expect(tab_items_quantity_location_text).to have_content storage_name
expect(tab_items_quantity_location_text).to have_content num_tampons_in_donation
expect(tab_items_quantity_location_text).to have_content num_tampons_second_donation
Expand Down

0 comments on commit 8ebb337

Please sign in to comment.