diff --git a/test/e2e/helpers.js b/test/e2e/helpers.js index eb9c0efb4b4b..a8098ef69b1e 100644 --- a/test/e2e/helpers.js +++ b/test/e2e/helpers.js @@ -50,6 +50,7 @@ async function withFixtures(options, testSuite) { let numberOfDapps = dapp ? 1 : 0; const dappServer = []; const phishingPageServer = new PhishingWarningPageServer(); + const phishingPagePort = 10000 + Math.floor(Math.random() * 10000); let webDriver; let driver; @@ -77,7 +78,7 @@ async function withFixtures(options, testSuite) { } await fixtureServer.start(); fixtureServer.loadJsonState(fixtures, contractRegistry); - await phishingPageServer.start(); + await phishingPageServer.start(phishingPagePort); if (dapp) { if (dappOptions?.numberOfDapps) { numberOfDapps = dappOptions.numberOfDapps;