Skip to content

Commit

Permalink
feat(test): Fix the integration test and the e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
DedrickEnc committed Oct 10, 2017
1 parent b4c524f commit c6d18dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/end-to-end/inventory/configuration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Inventory Configuration', () => {

// inventory unit
const unit = { text : '[E2E] Inventory Unit', abbr : 'IUE2E' };
const updateUnit = { text : '[E2E] Inventory Unit updated' };
const updateUnit = { text : '[E2E] Inventory Unit updated', abbr : 'IUu' };

describe('Groups', () => {
// navigate to the page
Expand Down Expand Up @@ -116,6 +116,7 @@ describe('Inventory Configuration', () => {
it('Successfully updates an existing inventory unit', () => {
element(by.css('[data-edit-unit="' + unit.abbr +'"]')).click();
FU.input('$ctrl.session.text', updateUnit.text);
FU.input('$ctrl.session.abbr', updateUnit.abbr);
FU.buttons.submit();
components.notification.hasSuccess();
});
Expand Down
6 changes: 4 additions & 2 deletions test/integration/inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ describe('(/inventory) The Inventory HTTP API', () => {
};

let inventoryUnit = {
text : '[Test] Comprimés'
text : '[Test] Comprimés',
abbr : 'TC'
};

let updateUnit = {
text : '[Test] Gellule'
text : '[Test] Gellule',
abbr : 'TG'
};

// ========================== inventory groups ==============================
Expand Down

0 comments on commit c6d18dc

Please sign in to comment.