Skip to content

Commit

Permalink
fix(test): de-reference deleted records
Browse files Browse the repository at this point in the history
This commit fixes the end-to-end tests by making sure that data deleted
in the configuration tests are de-referenced in the list tests.
  • Loading branch information
Jonathan Niles committed Mar 27, 2017
1 parent b3e0b89 commit 57d4420
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/models/test/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -397,4 +397,4 @@ INSERT INTO `purchase` VALUES

INSERT INTO `purchase_item` VALUES
(HUID(UUID()), @purchase_order, HUID('289cc0a1-b90f-11e5-8c73-159fdc73ab02'), 1, 200, 200),
(HUID(UUID()), @purchase_order, HUID('c48a3c4b-c07d-4899-95af-411f7708e296'), 10, 10, 100);
(HUID(UUID()), @purchase_order, HUID('c48a3c4b-c07d-4899-95af-411f7708e296'), 10, 10, 100);
4 changes: 2 additions & 2 deletions test/end-to-end/inventory/list.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Inventory List', () => {
code : uniqueIdentifier.concat('_updated'),
text : '[E2E] Inventory Article updated',
price : 7.77,
group : 'Inventory Group',
group : 'Test inventory group',
type : 'Service',
unit : 'Pill',
unit_weight : 7,
Expand Down Expand Up @@ -71,7 +71,7 @@ describe('Inventory List', () => {

GU.expectRowCount('inventoryListGrid', 1);
FU.buttons.clear();
});
});

it('dont creates a new inventory item (metadata) for invalid data', () => {
FU.buttons.create();
Expand Down

0 comments on commit 57d4420

Please sign in to comment.