Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Add test for inventory.barcode, closes #693 (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
aszx87410 authored and jkleinsc committed Oct 14, 2016
1 parent 7bda273 commit a1e3b8a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/acceptance/inventory-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@ test('Adding a new inventory item', (assert) => {
});
});

test('Visiting /inventory/barcode', (assert) => {
runWithPouchDump('inventory', function() {
authenticateUser();
visit('/inventory/listing');

andThen(() => {
assert.equal(currentURL(), '/inventory/listing');
click('a:contains(Barcode)');
andThen(() => {
assert.equal(currentURL(), '/inventory/barcode/igbmk5zf_is');
findWithAssert('.panel-body img[src^="data:image"]');
});
});
});
});

test('Deleting the last inventory item', (assert) => {
runWithPouchDump('inventory', function() {
authenticateUser();
Expand Down

0 comments on commit a1e3b8a

Please sign in to comment.