|
|
@@ -204,14 +204,16 @@ var newDelivery = function(done) { |
|
|
print('Filling out delivery information.'),
|
|
|
$.go(false, 'visit', 'https://online.jimmyjohns.com/#/deliveryaddress'),
|
|
|
$.go(false, 'waitForElement', '#companyInput'),
|
|
|
- setInput('#companyInput', 'company'),
|
|
|
+ setInput('#companyInput', 'company', true),
|
|
|
setInput('#addressInput', 'address'),
|
|
|
setInput('#aptNoInput', 'apt/suite', true),
|
|
|
setInput('#cityInput', 'city'),
|
|
|
selectVal('#stateSelect', 'state'),
|
|
|
setInput('#zip', 'zip'),
|
|
|
+ sleep(1000),
|
|
|
$('#verifyAddressBtn').go(false, 'click'),
|
|
|
$.go(false, 'waitForElement', '#confirmDeliveryAddressBtn'),
|
|
|
+ sleep(1000),
|
|
|
$('#confirmDeliveryAddressBtn').go(false, 'click'),
|
|
|
$.go(false, 'waitForElement', 'a.menuTab'),
|
|
|
print('Sucessfully filled out delivery information.'),
|
|
|
@@ -407,11 +409,16 @@ var checkout = function(done) { |
|
|
setInput('#billingZip', 'billing_zip'),
|
|
|
$('a:contains("Review Order")').go(false, 'click'),
|
|
|
$.go(false, 'waitForElement', 'h1:contains("Review & Place Order")'),
|
|
|
+ setInput('#companyInput', 'company', true),
|
|
|
+ setInput('#aptNoInput', 'apt/suite', true),
|
|
|
+ setInput('#gateCode', 'gate_code', true),
|
|
|
+ setInput('#deliveryInstructions', 'delivery_instructions', true),
|
|
|
+ sleep(1000),
|
|
|
print('Placing order...'),
|
|
|
$('a:contains("Place Order")').go(false, 'click'),
|
|
|
$.go(false, 'waitForElement', 'h1:contains("Thank you for your order")'),
|
|
|
$.go('capture', __dirname + '/complete.png'),
|
|
|
- print('Delivery on its way!')
|
|
|
+ print('Delivery on its way! Order details at ' + __dirname + '/complete.png')
|
|
|
], done);
|
|
|
};
|
|
|
|
|
|
|
0 comments on commit
861a674