|
34 | 34 | it "allows creation of a new store credit" do
|
35 | 35 | click_on "Create One"
|
36 | 36 |
|
37 |
| - expect(page).to have_selector("dialog", wait: 5) |
| 37 | + expect(page).to have_selector("dialog") |
38 | 38 | expect(page).to have_content("New Store Credit")
|
39 | 39 |
|
40 | 40 | within("dialog") do
|
|
47 | 47 |
|
48 | 48 | click_on "Create One"
|
49 | 49 |
|
50 |
| - expect(page).to have_selector("dialog", wait: 5) |
| 50 | + expect(page).to have_selector("dialog") |
51 | 51 | expect(page).to have_content("New Store Credit")
|
52 | 52 |
|
53 | 53 | within("dialog") do
|
|
109 | 109 | context "with invalid amount" do
|
110 | 110 | it "shows the appropriate error message" do
|
111 | 111 | click_on "Edit Amount"
|
112 |
| - expect(page).to have_selector("dialog", wait: 5) |
| 112 | + expect(page).to have_selector("dialog") |
113 | 113 | expect(page).to have_content("Edit Store Credit Amount")
|
114 | 114 |
|
115 | 115 | within("dialog") do
|
|
124 | 124 | context "without a valid reason" do
|
125 | 125 | it "shows the appropriate error message" do
|
126 | 126 | click_on "Edit Amount"
|
127 |
| - expect(page).to have_selector("dialog", wait: 5) |
| 127 | + expect(page).to have_selector("dialog") |
128 | 128 | expect(page).to have_content("Edit Store Credit Amount")
|
129 | 129 |
|
130 | 130 | within("dialog") do
|
|
139 | 139 | context "with valid params" do
|
140 | 140 | it "allows editing of the store credit amount" do
|
141 | 141 | click_on "Edit Amount"
|
142 |
| - expect(page).to have_selector("dialog", wait: 5) |
| 142 | + expect(page).to have_selector("dialog") |
143 | 143 | expect(page).to have_content("Edit Store Credit Amount")
|
144 | 144 |
|
145 | 145 | within("dialog") do
|
|
159 | 159 | context "without a valid reason" do
|
160 | 160 | it "shows the appropriate error message" do
|
161 | 161 | click_on "Invalidate"
|
162 |
| - expect(page).to have_selector("dialog", wait: 5) |
| 162 | + expect(page).to have_selector("dialog") |
163 | 163 | expect(page).to have_content("Invalidate Store Credit")
|
164 | 164 |
|
165 | 165 | within("dialog") do
|
|
173 | 173 | context "with a valid reason" do
|
174 | 174 | it "invalidates the store credit" do
|
175 | 175 | click_on "Invalidate"
|
176 |
| - expect(page).to have_selector("dialog", wait: 5) |
| 176 | + expect(page).to have_selector("dialog") |
177 | 177 | expect(page).to have_content("Invalidate Store Credit")
|
178 | 178 |
|
179 | 179 | within("dialog") do
|
|
192 | 192 | context "when editing the store credit memo" do
|
193 | 193 | it "allows editing of the store credit memo" do
|
194 | 194 | click_on "Edit Memo"
|
195 |
| - expect(page).to have_selector("dialog", wait: 5) |
| 195 | + expect(page).to have_selector("dialog") |
196 | 196 | expect(page).to have_content("Edit Store Credit Memo")
|
197 | 197 |
|
198 | 198 | within("dialog") do
|
|
0 commit comments