|
115 | 115 | expect(page).to have_content(login_label) |
116 | 116 | click_link "Add Accessories" |
117 | 117 | wait_for_ajax |
| 118 | + wait_for { page.has_field?(accessory.name) } |
118 | 119 | check accessory.name |
119 | 120 | wait_for { page.has_field?("kiosk_accessories_#{accessory.id}_quantity") } |
120 | 121 | fill_in "kiosk_accessories_#{accessory.id}_quantity", with: "3" |
121 | | - wait_for { page.has_field?("kiosk_reservations_password") } |
| 122 | + wait_for { page.has_field?("kiosk_accessories_password") } |
122 | 123 | fill_in "Password", with: password |
123 | 124 | click_button "Save Changes" |
124 | 125 |
|
|
133 | 134 | expect(page).to have_content(login_label) |
134 | 135 | click_link "Add Accessories" |
135 | 136 | wait_for_ajax |
| 137 | + wait_for { page.has_field?(accessory.name) } |
136 | 138 | check accessory.name |
137 | 139 | wait_for { page.has_field?("kiosk_accessories_#{accessory.id}_quantity") } |
138 | 140 | fill_in "kiosk_accessories_#{accessory.id}_quantity", with: "3" |
139 | | - wait_for { page.has_field?("kiosk_reservations_password") } |
| 141 | + wait_for { page.has_field?("kiosk_accessories_password") } |
140 | 142 | fill_in "Password", with: "not-the-password" |
141 | 143 | click_button "Save Changes" |
142 | 144 | expect(page).not_to have_content("1 accessory added") |
|
150 | 152 | expect(page).to have_content(login_label) |
151 | 153 | click_link "End Reservation" |
152 | 154 | wait_for_ajax |
| 155 | + wait_for { page.has_field?(accessory.name) } |
153 | 156 | check accessory.name |
154 | 157 | wait_for { page.has_field?("kiosk_accessories_#{accessory.id}_quantity") } |
155 | 158 | fill_in "kiosk_accessories_#{accessory.id}_quantity", with: "3" |
156 | | - wait_for { page.has_field?("kiosk_reservations_password") } |
| 159 | + wait_for { page.has_field?("kiosk_accessories_password") } |
157 | 160 | fill_in "Password", with: password |
158 | 161 | click_button "Save Changes" |
159 | 162 |
|
|
171 | 174 | check accessory.name |
172 | 175 | wait_for_ajax |
173 | 176 | fill_in "kiosk_accessories_#{accessory.id}_quantity", with: "3" |
| 177 | + wait_for { page.has_field?("kiosk_accessories_password") } |
174 | 178 | fill_in "Password", with: "not-the-password" |
175 | 179 | click_button "Save Changes" |
176 | 180 |
|
|
0 commit comments