Skip to content

Commit

Permalink
Increase sleep time in purchase system specs to allow UI to catch up
Browse files Browse the repository at this point in the history
  • Loading branch information
torienyart committed Sep 27, 2023
1 parent 7b89fc5 commit db5e0eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/system/purchase_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
fill_in "vendor_business_name", with: "businesstest"
fill_in "vendor_contact_name", with: "test"
fill_in "vendor_email", with: "123@mail.ru"
sleep(0.3)
click_on "vendor-submit"
select "businesstest", from: "purchase_vendor_id"
expect(page).to have_no_content("New Vendor")
Expand Down Expand Up @@ -264,7 +265,7 @@
within ".modal-content" do
fill_in "barcode_item_quantity", with: 3
select Item.alphabetized.first.name, from: "barcode_item_barcodeable_id"
sleep(0.1)
sleep(0.3)
click_button "Save"
end

Expand Down

0 comments on commit db5e0eb

Please sign in to comment.