|
39 | 39 | before do |
40 | 40 | visit subject |
41 | 41 | click_on "New Adjustment" |
42 | | - select storage_location.name, from: "From storage location" |
| 42 | + await_select2("#adjustment_line_items_attributes_0_item_id") do |
| 43 | + select storage_location.name, from: "From storage location" |
| 44 | + end |
43 | 45 | fill_in "Comment", with: "something" |
44 | 46 | select Item.last.name, from: "adjustment_line_items_attributes_0_item_id" |
45 | 47 | end |
|
67 | 69 | storage_location = create(:storage_location, :with_items, name: "PICK THIS ONE", item_quantity: 10, organization: organization) |
68 | 70 | visit adjustments_path |
69 | 71 | click_on "New Adjustment" |
70 | | - select storage_location.name, from: "From storage location" |
| 72 | + await_select2("#adjustment_line_items_attributes_0_item_id") do |
| 73 | + select storage_location.name, from: "From storage location" |
| 74 | + end |
71 | 75 | fill_in "Comment", with: "something" |
72 | 76 | select Item.last.name, from: "adjustment_line_items_attributes_0_item_id" |
73 | 77 | fill_in "adjustment_line_items_attributes_0_quantity", with: sub_quantity.to_s |
|
84 | 88 | storage_location = create(:storage_location, :with_items, name: "PICK THIS ONE", item_quantity: 10, organization: organization) |
85 | 89 | visit adjustments_path |
86 | 90 | click_on "New Adjustment" |
87 | | - select storage_location.name, from: "From storage location" |
| 91 | + await_select2("#adjustment_line_items_attributes_0_item_id") do |
| 92 | + select storage_location.name, from: "From storage location" |
| 93 | + end |
88 | 94 | fill_in "Comment", with: "something" |
89 | 95 | select Item.last.name, from: "adjustment_line_items_attributes_0_item_id" |
90 | 96 | fill_in "adjustment_line_items_attributes_0_quantity", with: sub_quantity.to_s |
|
0 commit comments