diff --git a/src/components/sendReadable/send.js b/src/components/sendReadable/send.js index 68b5dcc09e..f746e3f297 100644 --- a/src/components/sendReadable/send.js +++ b/src/components/sendReadable/send.js @@ -85,7 +85,7 @@ class SendReadable extends React.Component { amount: this.state.amount.value, passphrase: this.props.passphrase.value, secondPassphrase: this.props.secondPassphrase.value, - data: this.props.reference, + data: this.props.accountInit ? this.props.t('Account initialization') : this.props.reference, }); } diff --git a/src/components/transactions/transactionType.js b/src/components/transactions/transactionType.js index f45a24870c..087ccd74a4 100644 --- a/src/components/transactions/transactionType.js +++ b/src/components/transactions/transactionType.js @@ -6,9 +6,6 @@ const TransactionType = (props) => { const { t } = props; let type; switch (props.type) { - case 0: - type = props.senderId === props.recipientId ? t('Account initialization') : false; - break; case 1: type = t('Second passphrase registration'); break; diff --git a/test/cypress/e2e/transfer.spec.js b/test/cypress/e2e/transfer.spec.js index 27533c9362..f71cda8f3c 100644 --- a/test/cypress/e2e/transfer.spec.js +++ b/test/cypress/e2e/transfer.spec.js @@ -129,16 +129,6 @@ describe('Transfer', () => { cy.get('@tx').find(ss.transactionAddress).should('have.text', randomAddress); }); - it('Transfer to myself appears as account initialization', () => { - cy.autologin(accounts.genesis.passphrase, networks.devnet.node); - cy.visit(urls.wallet); - cy.get(ss.recipientInput).type(accounts.genesis.address); - cy.get(ss.amountInput).click().type(randomAmount); - cy.get(ss.nextButton).click(); - cy.get(ss.sendButton).click(); - cy.get(ss.transactionRow).eq(0).find(ss.transactionAddress).should('have.text', msg.accountInitializatoinAddress); - }); - it('Launch protocol link prefills recipient, amount and reference', () => { cy.autologin(accounts.genesis.passphrase, networks.devnet.node); cy.visit('/wallet?recipient=4995063339468361088L&amount=5&reference=test'); @@ -172,5 +162,8 @@ describe('Transfer', () => { cy.wait(txConfirmationTimeout); cy.reload(); cy.get(ss.accountInitializationMsg).should('not.exist'); + cy.get(ss.transactionRow).eq(0).as('tx'); + cy.get('@tx').find(ss.transactionAddress).should('have.text', accounts['without initialization'].address); + cy.get('@tx').find(ss.transactionReference).should('have.text', 'Account initialization'); }); }); diff --git a/test/integration/wallet.test.js b/test/integration/wallet.test.js index 77e36520f6..f642f1af5f 100644 --- a/test/integration/wallet.test.js +++ b/test/integration/wallet.test.js @@ -200,7 +200,7 @@ describe('@integration: Wallet', () => { match.defined, match.defined, null, - undefined, + 'Account initialization', ).returnsPromise().resolves({ data: [] }); });