From 17e7b1a8cba379488bf07e4850cb08627a93ae4c Mon Sep 17 00:00:00 2001 From: kumavis Date: Tue, 10 Sep 2019 23:10:24 +0800 Subject: [PATCH] test:e2e - only overwrite window.fetch once per session --- test/e2e/address-book.spec.js | 3 --- test/e2e/from-import-ui.spec.js | 3 --- test/e2e/incremental-security.spec.js | 3 --- test/e2e/metamask-responsive-ui.spec.js | 3 --- test/e2e/metamask-ui.spec.js | 3 --- test/e2e/send-edit.spec.js | 3 --- test/e2e/web3.spec.js | 3 --- 7 files changed, 21 deletions(-) diff --git a/test/e2e/address-book.spec.js b/test/e2e/address-book.spec.js index b23aa94ad..c7d846e5a 100644 --- a/test/e2e/address-book.spec.js +++ b/test/e2e/address-book.spec.js @@ -30,9 +30,6 @@ describe('MetaMask', function () { const result = await prepareExtensionForTesting() driver = result.driver extensionId = result.extensionId - }) - - beforeEach(async function () { await setupFetchMocking(driver) }) diff --git a/test/e2e/from-import-ui.spec.js b/test/e2e/from-import-ui.spec.js index c0d0048f1..3bc31734a 100644 --- a/test/e2e/from-import-ui.spec.js +++ b/test/e2e/from-import-ui.spec.js @@ -30,9 +30,6 @@ describe('Using MetaMask with an existing account', function () { before(async function () { const result = await prepareExtensionForTesting() driver = result.driver - }) - - beforeEach(async function () { await setupFetchMocking(driver) }) diff --git a/test/e2e/incremental-security.spec.js b/test/e2e/incremental-security.spec.js index 7bf9d0902..f8d82abc3 100644 --- a/test/e2e/incremental-security.spec.js +++ b/test/e2e/incremental-security.spec.js @@ -32,9 +32,6 @@ describe('MetaMask', function () { const result = await prepareExtensionForTesting() driver = result.driver extensionId = result.extensionId - }) - - beforeEach(async function () { await setupFetchMocking(driver) }) diff --git a/test/e2e/metamask-responsive-ui.spec.js b/test/e2e/metamask-responsive-ui.spec.js index 90b81df41..ae45c6c08 100644 --- a/test/e2e/metamask-responsive-ui.spec.js +++ b/test/e2e/metamask-responsive-ui.spec.js @@ -30,9 +30,6 @@ describe('MetaMask', function () { const result = await prepareExtensionForTesting() driver = result.driver extensionId = result.extensionId - }) - - beforeEach(async function () { await setupFetchMocking(driver) }) diff --git a/test/e2e/metamask-ui.spec.js b/test/e2e/metamask-ui.spec.js index 7c565157e..cd7c68c31 100644 --- a/test/e2e/metamask-ui.spec.js +++ b/test/e2e/metamask-ui.spec.js @@ -36,9 +36,6 @@ describe('MetaMask', function () { const result = await prepareExtensionForTesting() driver = result.driver extensionId = result.extensionId - }) - - beforeEach(async function () { await setupFetchMocking(driver) }) diff --git a/test/e2e/send-edit.spec.js b/test/e2e/send-edit.spec.js index c007b82fd..3f12aaaf2 100644 --- a/test/e2e/send-edit.spec.js +++ b/test/e2e/send-edit.spec.js @@ -27,9 +27,6 @@ describe('Using MetaMask with an existing account', function () { before(async function () { const result = await prepareExtensionForTesting() driver = result.driver - }) - - beforeEach(async function () { await setupFetchMocking(driver) }) diff --git a/test/e2e/web3.spec.js b/test/e2e/web3.spec.js index e22d0e596..a0df97b4e 100644 --- a/test/e2e/web3.spec.js +++ b/test/e2e/web3.spec.js @@ -41,9 +41,6 @@ describe('Using MetaMask with an existing account', function () { before(async function () { const result = await prepareExtensionForTesting() driver = result.driver - }) - - beforeEach(async function () { await setupFetchMocking(driver) })