Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds retry option to flaky edit_spec.rb #12800

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions spec/system/admin/order_cycles/edit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
end

context 'with no attached order' do
it "does not show warning modal" do
it "does not show warning modal", retry: 3 do
login_as_admin
visit edit_admin_order_cycle_path(order_cycle)

Expand Down Expand Up @@ -134,13 +134,14 @@
end

context 'with no attached orders' do
it "does not show warning modal" do
it "does not show warning modal", retry: 3 do
login_as_admin
visit edit_admin_order_cycle_path(order_cycle)

# change non-date range field value
fill_in 'order_cycle_name', with: "OC1 name updated"
expect(page).to have_content('You have unsaved changes')
sleep(2)

# click save
click_button('Save')
Expand All @@ -155,6 +156,7 @@
find("button", text: "Close").click
end
expect(page).to have_content('You have unsaved changes')
sleep(2)

click_button('Save')
expect(page).to have_content('Your order cycle has been updated.')
Expand Down
Loading