Skip to content

Instantly share code, notes, and snippets.

@biscuitvile
Created June 5, 2015 15:10
Show Gist options
  • Save biscuitvile/73bdcfee832acf7d2b4e to your computer and use it in GitHub Desktop.
Save biscuitvile/73bdcfee832acf7d2b4e to your computer and use it in GitHub Desktop.
assert.equal(
find('.order-contact__info .text--big.text--right').text(), '$12.56',
'Total is shown');
assert.equal(
find('.order-contact__info .text--alt.text--right').text(), '#EFGH-123456',
'Order number is shown');
assert.equal(
find('.order-detail address p:eq(0)').text(), '411 Walnut St.',
'Shipping address 1 is shown');
assert.equal(
find('.order-detail address p:eq(1)').text(), '#6534',
'Shipping address 2 is shown');
assert.equal(
find('.order-detail address p:eq(2)').text(), 'Jacksonville, Florida',
'Shipping city and state are shown');
assert.equal(
find('.order-detail address p:eq(3)').text(), '32043',
'Shipping zip is shown');
assert.equal(
find('.order-detail address p:eq(4)').text(), 'United States',
'Shipping country is shown');
assert.equal(
find(".order-detail a[href*='paypal.com/transactions/foo']").text(),
'View at PayPal', 'Link to payment is shown');
assert.equal(
find('.order-detail .text--alt:eq(3)').text(), 'Government denies knowledge',
'Customer note is shown');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment