Skip to content

Commit da8b5b5

Browse files
committed
Promotion spec: Wait for flash message
Otherwise, the benefit might not have updated in the database yet. (cherry picked from commit 390664e)
1 parent 8d75b77 commit da8b5b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

promotions/spec/system/solidus_promotions/backend/promotions_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
fill_in("benefit_calculator_attributes_preferred_amount", with: 30)
128128
click_button("Update")
129129
end
130+
expect(page).to have_content("Benefit has been successfully updated!")
130131
expect(benefit.reload.calculator.preferred_amount).to eq(30)
131132

132133
click_link("Add Condition")

0 commit comments

Comments
 (0)