mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Merge pull request #13135 from mkllnk/flaky-payment-method-spec
Fix flaky payment method spec
This commit is contained in:
@@ -317,6 +317,8 @@ RSpec.describe '
|
||||
it "inserts values which persist" do
|
||||
expect(page).to have_content("you must save first before")
|
||||
click_button 'Update'
|
||||
click_on "Dismiss"
|
||||
|
||||
fill_in "Flat Percent", with: '2.5'
|
||||
click_button 'Update'
|
||||
expect(page).to have_content("Payment Method has been successfully updated!")
|
||||
@@ -330,6 +332,8 @@ RSpec.describe '
|
||||
it "inserts values which persist" do
|
||||
expect(page).to have_content("you must save first before")
|
||||
click_button 'Update'
|
||||
click_on "Dismiss"
|
||||
|
||||
fill_in "Amount", with: 2.2
|
||||
click_button 'Update'
|
||||
expect(page).to have_content("Payment Method has been successfully updated!")
|
||||
@@ -343,6 +347,8 @@ RSpec.describe '
|
||||
it "inserts values which persist" do
|
||||
expect(page).to have_content("you must save first before")
|
||||
click_button 'Update'
|
||||
click_on "Dismiss"
|
||||
|
||||
fill_in "First Item Cost", with: 2
|
||||
fill_in "Additional Item Cost", with: 1.1
|
||||
fill_in "Max Items", with: 10
|
||||
@@ -360,6 +366,8 @@ RSpec.describe '
|
||||
it "inserts values which persist" do
|
||||
expect(page).to have_content("you must save first before")
|
||||
click_button 'Update'
|
||||
click_on "Dismiss"
|
||||
|
||||
fill_in "Amount", with: 2.2
|
||||
click_button 'Update'
|
||||
expect(page).to have_content("Payment Method has been successfully updated!")
|
||||
|
||||
Reference in New Issue
Block a user