Skip to content

Commit

Permalink
Fix e2e errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mbayopanda committed May 9, 2017
1 parent 3fd7698 commit dd96dee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ function CashTransferKitController(Instance, Notify, Cashbox,
// expose to the view
vm.close = Instance.close;
vm.import = submit;
vm.onSelectCashbox = onSelectCashbox;
vm.onSelectAccount = onSelectAccount;

// accounts from store
AccountStore.accounts()
Expand Down Expand Up @@ -68,20 +66,10 @@ function CashTransferKitController(Instance, Notify, Cashbox,
debit : 0,
credit : 0,
reference_uuid : undefined,
entity_uuid : undefined
entity_uuid : undefined,
};
}

// on select cashbox
function onSelectCashbox() {

}

// on select account
function onSelectAccount() {

}

// submission
function submit(form) {
if (form.$invalid) { return; }
Expand Down
4 changes: 2 additions & 2 deletions test/end-to-end/vouchers/vouchers.search.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module.exports = VoucherRegistrySearch;

function VoucherRegistrySearch() {
const gridId = 'voucher-grid';
const NUM_VOUCHERS = 12;
const NUM_USER_RECORDS = 12;
const NUM_VOUCHERS = 10;
const NUM_USER_RECORDS = 10;
const NUM_DESCRIPTION_RECORDS = 2;

function expectNumberOfGridRows(number) {
Expand Down
2 changes: 1 addition & 1 deletion test/end-to-end/vouchers/vouchers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const GU = require('../shared/GridUtils');
const VoucherRegistrySearch = require('./vouchers.search');

describe('Voucher Registry', function () {
const numVouchers = 12;
const numVouchers = 10;
const gridId = 'voucher-grid';

before(() => helpers.navigate('vouchers'));
Expand Down

0 comments on commit dd96dee

Please sign in to comment.