55
55
// $.mockjaxSettings.matchInRegistrationOrder = false;
56
56
// mocks.push(
57
57
// $.mockjax({
58
- // url: "/api/v1/auth/current_user_profil *",
58
+ // url: "/api/v1/auth/current_user_profile *",
59
59
// responseText: data
60
60
// }),
61
61
// $.mockjax({
62
- // url: "/api/v1/orders/summar *",
62
+ // url: "/api/v1/orders/summary *",
63
63
// responseText: {
64
64
// submitted: 14,
65
65
// awaiting_dispatch: 1,
109
109
// });
110
110
// mocks.push(
111
111
// $.mockjax({
112
- // url: `/items/${updatedPkg.id}/split_ite *`,
112
+ // url: `/items/${updatedPkg.id}/split_item *`,
113
113
// type: "PUT",
114
114
// status: 200,
115
115
// responseText: updatedPkg
116
116
// })
117
117
// );
118
118
// visit("/");
119
119
// andThen(function() {
120
- // visit(`/items/${updatedPkg.id}`);
120
+ // visit(`/items/${updatedPkg.id}/publishing`);
121
+ // });
122
+ // andThen(function() {
123
+ // click(".small-block-grid-4 li:last");
121
124
// });
122
125
// andThen(function() {
123
126
// click(".split-quantity");
129
132
// click(".split-item-btn");
130
133
// });
131
134
// andThen(function() {
132
- // assert.equal(
133
- // +Ember.$(".item-quantity")
134
- // .text()
135
- // .trim(),
136
- // 18
137
- // );
135
+ // assert.equal($(".inventory-holder").text(), 18);
138
136
// });
139
137
// });
140
138
163
161
// });
164
162
// mocks.push(
165
163
// $.mockjax({
166
- // url: `/items/${updatedPkg.id}/split_ite *`,
164
+ // url: `/items/${updatedPkg.id}/split_item *`,
167
165
// type: "PUT",
168
166
// status: 200,
169
167
// responseText: updatedPkg
175
173
// visit(`/items/${updatedPkg.id}`);
176
174
// });
177
175
// andThen(function() {
176
+ // click(".small-block-grid-4 li:last");
177
+ // });
178
+ // andThen(function() {
178
179
// click(".split-quantity");
179
180
// });
180
181
// andThen(function() {
215
216
// });
216
217
// mocks.push(
217
218
// $.mockjax({
218
- // url: `/items/${updatedPkg.id}/split_ite *`,
219
+ // url: `/items/${updatedPkg.id}/split_item *`,
219
220
// type: "PUT",
220
221
// status: 200,
221
222
// responseText: updatedPkg
227
228
// visit(`/items/${updatedPkg.id}`);
228
229
// });
229
230
// andThen(function() {
231
+ // click(".small-block-grid-4 li:last");
232
+ // });
233
+ // andThen(function() {
230
234
// click(".split-quantity");
231
235
// });
232
236
// andThen(function() {
267
271
// });
268
272
// mocks.push(
269
273
// $.mockjax({
270
- // url: `/items/${updatedPkg.id}/split_ite *`,
274
+ // url: `/items/${updatedPkg.id}/split_item *`,
271
275
// type: "PUT",
272
276
// status: 200,
273
277
// responseText: updatedPkg
279
283
// visit(`/items/${updatedPkg.id}`);
280
284
// });
281
285
// andThen(function() {
286
+ // click(".small-block-grid-4 li:last");
287
+ // });
288
+ // andThen(function() {
282
289
// click(".split-quantity");
283
290
// });
284
291
// andThen(function() {
323
330
// });
324
331
// mocks.push(
325
332
// $.mockjax({
326
- // url: `/items/${updatedPkg.id}/split_ite *`,
333
+ // url: `/items/${updatedPkg.id}/split_item *`,
327
334
// type: "PUT",
328
335
// status: 200,
329
336
// responseText: updatedPkg
334
341
// visit(`/items/${updatedPkg.id}`);
335
342
// });
336
343
// andThen(function() {
344
+ // click(".small-block-grid-4 li:last");
345
+ // });
346
+ // andThen(function() {
337
347
// click(".split-quantity");
338
348
// });
339
349
// andThen(function() {
378
388
// });
379
389
// mocks.push(
380
390
// $.mockjax({
381
- // url: `/items/${updatedPkg.id}/split_ite *`,
391
+ // url: `/items/${updatedPkg.id}/split_item *`,
382
392
// type: "PUT",
383
393
// status: 200,
384
394
// responseText: updatedPkg
385
395
// })
386
396
// );
387
397
// visit("/");
388
398
// andThen(function() {
389
- // visit(`/items/${updatedPkg.id}`);
399
+ // visit(`/items/${updatedPkg.id}/publishing`);
400
+ // });
401
+ // andThen(function() {
402
+ // click(".small-block-grid-4 li:last");
390
403
// });
391
404
// andThen(function() {
392
405
// click(".split-quantity");
398
411
// click(".dont-split-btn");
399
412
// });
400
413
// andThen(function() {
401
- // assert.equal(
402
- // +Ember.$(".item-quantity")
403
- // .text()
404
- // .trim(),
405
- // 20
406
- // );
414
+ // assert.equal($(".inventory-holder").text(), 20);
407
415
// });
408
- // });
409
-
410
- //Commented for now and wll be updated once split button is added in action field
416
+ // });
0 commit comments