forked from balanced/balanced-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
2,515 additions
and
16,154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- 0.10 | ||
#before_script: | ||
# - export DISPLAY=:99.0 | ||
# - sh -e /etc/init.d/xvfb start | ||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,20 +15,20 @@ module('Invoices', { | |
}); | ||
|
||
test('can visit page', function(assert) { | ||
visit('/marketplaces/MP5m04ORxNlNDm1bB7nkcgSY/invoices').then(function() { | ||
visit('/marketplaces/TEST-MP4cOZZqeAelhxXQzljLLtgl/invoices').then(function() { | ||
// check the page title has been selected | ||
assert.equal($('#content h1').text().trim(), 'Invoices'); | ||
}); | ||
}); | ||
|
||
test('shows invoices list', function(assert) { | ||
visit('/marketplaces/MP5m04ORxNlNDm1bB7nkcgSY/invoices').then(function() { | ||
visit('/marketplaces/TEST-MP4cOZZqeAelhxXQzljLLtgl/invoices').then(function() { | ||
assert.equal($("#invoices table tbody tr").length, 2); | ||
}); | ||
}); | ||
|
||
test('invoice detail page', function(assert) { | ||
visit('/marketplaces/MP5m04ORxNlNDm1bB7nkcgSY/invoices/IVDOATjeyAPTJMJPnBR83uE') | ||
visit('/marketplaces/TEST-MP4cOZZqeAelhxXQzljLLtgl/invoices/IVDOATjeyAPTJMJPnBR83uE') | ||
.then(function() { | ||
assert.equal($(".invoice-balance-due-box .amount").text().trim(), "$17.85"); | ||
assert.equal($(".hold-details-row .total").text().trim(), "$17.85"); | ||
|
@@ -59,7 +59,7 @@ test('invoice detail page', function(assert) { | |
|
||
// Check if the transaction is showing up correctly | ||
assert.equal($('.activity table.transactions tbody tr:eq(0) .type').text().trim(), 'Hold: void'); | ||
assert.equal($('.activity table.transactions tbody tr:eq(0) .account').text().trim(), 'slkfdjslkj ([email protected])'); | ||
assert.equal($('.activity table.transactions tbody tr:eq(0) .account').text().trim(), 'slkfdjslkj'); | ||
assert.equal($('.activity table.transactions tbody tr:eq(0) .amount').text().trim(), '$49.95'); | ||
}) | ||
.click('.activity .results header li.debit-bank-accounts a') | ||
|
@@ -76,7 +76,7 @@ test('invoice detail page', function(assert) { | |
|
||
// Check if the transaction is showing up correctly | ||
assert.equal($('.activity table.transactions tbody tr:eq(0) .type').text().trim(), 'Refund'); | ||
assert.equal($('.activity table.transactions tbody tr:eq(0) .account').text().trim(), 'Marc Sherry ([email protected])'); | ||
assert.equal($('.activity table.transactions tbody tr:eq(0) .account').text().trim(), 'Marc Sherry'); | ||
assert.equal($('.activity table.transactions tbody tr:eq(0) .amount').text().trim(), '$5.00'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.