|
48 | 48 | expect(page).to have_content("Order R123456789")
|
49 | 49 | open_customer_menu
|
50 | 50 | click_on "Edit billing address"
|
51 |
| - expect(page).to have_css("dialog", wait: 30) |
| 51 | + expect(page).to have_css("dialog", wait: 5) |
52 | 52 |
|
53 | 53 | within("dialog") do
|
54 | 54 | fill_in "Name", with: "John Doe"
|
|
74 | 74 |
|
75 | 75 | open_customer_menu
|
76 | 76 | click_on "Edit shipping address"
|
77 |
| - expect(page).to have_css("dialog", wait: 30) |
| 77 | + expect(page).to have_css("dialog", wait: 5) |
78 | 78 |
|
79 | 79 | within("dialog") do
|
80 | 80 | fill_in "Name", with: "Jane Doe"
|
|
119 | 119 | expect(Spree::Order.last.line_items.count).to eq(0)
|
120 | 120 |
|
121 | 121 | find("[aria-selected]", text: "Just another product").click
|
122 |
| - expect(page).to have_content("Variant added to cart successfully", wait: 30) |
| 122 | + expect(page).to have_content("Variant added to cart successfully", wait: 5) |
123 | 123 |
|
124 | 124 | expect(Spree::Order.last.line_items.count).to eq(1)
|
125 | 125 | expect(Spree::Order.last.line_items.last.quantity).to eq(1)
|
126 | 126 |
|
127 | 127 | fill_in "line_item[quantity]", with: 4
|
128 |
| - expect(page).to have_content("Quantity updated successfully", wait: 30) |
| 128 | + expect(page).to have_content("Quantity updated successfully", wait: 5) |
129 | 129 |
|
130 | 130 | expect(Spree::Order.last.line_items.last.quantity).to eq(4)
|
131 | 131 |
|
132 | 132 | accept_confirm("Are you sure?") { click_on "Delete" }
|
133 |
| - expect(page).to have_content("Line item removed successfully", wait: 30) |
| 133 | + expect(page).to have_content("Line item removed successfully", wait: 5) |
134 | 134 |
|
135 | 135 | expect(Spree::Order.last.line_items.count).to eq(0)
|
136 | 136 | expect(page).to be_axe_clean
|
|
0 commit comments