Skip to content

Commit

Permalink
fix wallet's broken tests #234
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiaszCudnik committed Jun 17, 2019
1 parent 23029ae commit a3e9c71
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 289 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Expand Up @@ -2,13 +2,13 @@

### RISE Wallet 1.3 beta

- ability to verify the mnemonic in the settings
- import / export of account and contacts
- import / export of accounts and contacts
- verify a mnemonic in the settings
- fixed 1e-9 input in the Send dialog

### RISE Wallet 1.2 beta 2

- switched to the webusb transport for Ledger Nano (fixes #224)
- switched to the webusb transport for Ledger Nano #224
- misc bugfixes

### RISE Wallet 1.1.3
Expand Down
14 changes: 7 additions & 7 deletions cypress/integration/wallet.spec.ts
Expand Up @@ -53,8 +53,8 @@ afterEach(() => {
});

context('Wallet', () => {
it('send coins', () => {
const id = lstore.get('accounts')[1].id;
it('send coins', function() {
const id = this.accounts.storedAccounts[1].id;
// click the Send RISE button
cy.get('a[title="Send RISE"]').click();
assertAutofocus();
Expand Down Expand Up @@ -211,8 +211,8 @@ context('Wallet', () => {
});

context('Server errors', () => {
it('error messages', () => {
const id = lstore.get('accounts')[1].id;
it('error messages', function() {
const id = this.accounts.storedAccounts[1].id;
// stab the route
cy.route({
method: 'PUT',
Expand All @@ -234,8 +234,8 @@ context('Server errors', () => {
assertUnsuccessfulDialog('test reason');
});

it('retry', () => {
const id = lstore.get('accounts')[1].id;
it('retry', function() {
const id = this.accounts.storedAccounts[1].id;
// stab the route
cy.route({
method: 'PUT',
Expand Down Expand Up @@ -656,7 +656,7 @@ context('Dialog navigation', function() {
});

it('no navigation buttons during a submission', function() {
const id = lstore.get('accounts')[1].id;
const id = this.accounts.storedAccounts[1].id;
// click the Send RISE button
cy.get('a[title="Send RISE"]').click();
// type in the recipient address (esc closes auto-completion)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -100,7 +100,7 @@
"@types/react-intl": "^2.3.14",
"@types/socket.io-client": "^1.4.32",
"babel-plugin-react-intl": "^3.0.1",
"cypress": "^3.1.5",
"cypress": "^3.3.1",
"cypress-run": "^1.0.6",
"express": "^4.16.4",
"gh-pages": "^2.0.1",
Expand Down

0 comments on commit a3e9c71

Please sign in to comment.