Skip to content

Commit

Permalink
🐛 Fix everything on leger send PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Osvaldo Vega committed Nov 23, 2018
2 parents 49a6479 + 6c94328 commit d8669e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/utils/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { hwConstants, LEDGER_COMMANDS, loginType as loginTypesConst } from '../c
// import signPrefix from '../constants/signPrefix';
import { getLedgerAccountInfo } from './api/ledger';
import { getBufferToHex, getTransactionBytes, calculateTxId } from './rawTransactionWrapper';
// import store from '../store';

export const LEDGER_MSG = {
LEDGER_NO_TRANSPORT_AVAILABLE: i18next.t('Unable to detect the communication layer with your Ledger Nano S'),
Expand Down
23 changes: 12 additions & 11 deletions test/integration/wallet.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,18 @@ describe('@integration: Wallet', () => {
step(`Then I should see text ${successMessage} in "result box message" element`, () => helper.haveTextOf('.result-box-message', successMessage));
});

// describe('Scenario: should allow to send LSK from unlocked account with second passphrase', () => {
// const { secondPassphrase } = accounts['second passphrase account'];
// step('Given I\'m on "wallet" as "second passphrase account"', () => setupStep('second passphrase account'));
// step('And I fill in "1" to "amount" field', () => { helper.fillInputField('1', 'amount'); });
// step('And I fill in "537318935439898807L" to "recipient" field', () => { helper.fillInputField('537318935439898807L', 'recipient'); });
// step('And I click "send next button"', () => helper.clickOnElement('button.send-next-button'));
// step('And I fill in second passphrase of "second passphrase account" to "second passphrase" field', () => { helper.fillInputField(secondPassphrase, 'second-passphrase'); });
// step('When I click "next button"', () => helper.clickOnElement('.second-passphrase-next button'));
// step('When I click "send button"', () => helper.clickOnElement('.send-button button'));
// step(`Then I should see text ${successMessage} in "result box message" element`, () => helper.haveTextOf('.result-box-message', successMessage));
// });
// This should be unskipped in issue #1500
describe.skip('Scenario: should allow to send LSK from unlocked account with second passphrase', () => {
const { secondPassphrase } = accounts['second passphrase account'];
step('Given I\'m on "wallet" as "second passphrase account"', () => setupStep('second passphrase account'));
step('And I fill in "1" to "amount" field', () => { helper.fillInputField('1', 'amount'); });
step('And I fill in "537318935439898807L" to "recipient" field', () => { helper.fillInputField('537318935439898807L', 'recipient'); });
step('And I click "send next button"', () => helper.clickOnElement('button.send-next-button'));
step('And I fill in second passphrase of "second passphrase account" to "second passphrase" field', () => { helper.fillInputField(secondPassphrase, 'second-passphrase'); });
step('When I click "next button"', () => helper.clickOnElement('.second-passphrase-next button'));
step('When I click "send button"', () => helper.clickOnElement('.send-button button'));
step(`Then I should see text ${successMessage} in "result box message" element`, () => helper.haveTextOf('.result-box-message', successMessage));
});

describe('Scenario: should show account initialisation option if no public key and balance is greater than 0', () => {
step('Given I\'m on "wallet" as "genesis" account and need initialization', () => setupStep('genesis', { isLocked: false, withPublicKey: false }));
Expand Down

0 comments on commit d8669e4

Please sign in to comment.