From 53db9cfe44dc4b673e7c048173eb3a11cc1d238d Mon Sep 17 00:00:00 2001 From: Jan Marcano Date: Fri, 21 Oct 2022 10:23:33 -0300 Subject: [PATCH 1/2] Bump SDK to v1.22.0 --- packages/extension/package.json | 2 +- packages/test-project/package.json | 2 +- packages/ui/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/extension/package.json b/packages/extension/package.json index b0db3e3e..f05f79b6 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -20,7 +20,7 @@ "webpack-cli": "^4.9.0" }, "dependencies": { - "algosdk": "1.19.0", + "algosdk": "1.22.0", "buffer": "^6.0.3" }, "scripts": { diff --git a/packages/test-project/package.json b/packages/test-project/package.json index 1cbf1e0d..f5b30417 100644 --- a/packages/test-project/package.json +++ b/packages/test-project/package.json @@ -5,7 +5,7 @@ "license": "MIT", "description": "Repository for tests", "devDependencies": { - "algosdk": "1.19.0", + "algosdk": "1.22.0", "jest": "^28.1.0", "jest-runner-groups": "^2.2.0", "puppeteer": "^13.7.0", diff --git a/packages/ui/package.json b/packages/ui/package.json index 99d3a2cf..ab72edb5 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -16,7 +16,7 @@ "@fortawesome/fontawesome-free": "^5.15.0", "@ledgerhq/hw-app-algorand": "^5.51.1", "@ledgerhq/hw-transport-webhid": "^5.46.0", - "algosdk": "1.19.0", + "algosdk": "1.22.0", "buffer": "^6.0.3", "history": "^5.0.0", "htm": "^3.0.4", From b39d1d7967ee22c4b492d2e14ea0673ec9df8c30 Mon Sep 17 00:00:00 2001 From: Jan Marcano Date: Fri, 21 Oct 2022 10:26:23 -0300 Subject: [PATCH 2/2] Increase timeouts and specificity for certain tests --- packages/test-project/tests/common/helpers.js | 3 ++- packages/test-project/tests/ui-networks-e2e.test.js | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/test-project/tests/common/helpers.js b/packages/test-project/tests/common/helpers.js index dc132073..6d38f47c 100644 --- a/packages/test-project/tests/common/helpers.js +++ b/packages/test-project/tests/common/helpers.js @@ -77,7 +77,8 @@ async function inputPassword() { await extensionPage.waitForSelector('#enterPassword'); await extensionPage.type('#enterPassword', wallet.password); await extensionPage.click('#authButton'); - await extensionPage.waitForFunction(() => !document.querySelector('#authButton')); + await extensionPage.waitForFunction(() => document.querySelector('#authButton') === null); + await expect(extensionPage.select('#authButton')).rejects.toThrow(); } async function getOpenedTab() { diff --git a/packages/test-project/tests/ui-networks-e2e.test.js b/packages/test-project/tests/ui-networks-e2e.test.js index 60c2a8d9..be863319 100644 --- a/packages/test-project/tests/ui-networks-e2e.test.js +++ b/packages/test-project/tests/ui-networks-e2e.test.js @@ -40,7 +40,7 @@ describe('Create and Test Custom Networks', () => { const otherNet = 'OtherNet'; const otherNetSelector = `button#select${otherNet}`; - test('Add Custom TestNet and test it', async () => { + test('Add Custom TestNet proxy and test it', async () => { // Create network await openNetworkMenu(); await extensionPage.click('#createNetwork'); @@ -74,12 +74,12 @@ describe('Create and Test Custom Networks', () => { // // Save Network await extensionPage.waitForTimeout(1000); await extensionPage.click('#saveNetwork:not(disabled)'); - await extensionPage.waitForTimeout(2000); + await extensionPage.waitForTimeout(4000); }); ImportAccount(accounts.ui); - test('Test Modifying Network', async () => { + test('Test Modifying Custom Network', async () => { await openNetworkMenu(); // Change Network name @@ -93,7 +93,7 @@ describe('Create and Test Custom Networks', () => { await inputPassword(); }); - test('Test Deleting Networks', async () => { + test('Test Deleting Custom Network', async () => { await openNetworkMenu(); // Delete OtherNet