From 40fac45b6872952e60ad9675d132faf89887b583 Mon Sep 17 00:00:00 2001 From: Kirill Nagaitsev Date: Tue, 11 Jun 2019 16:53:27 -0500 Subject: [PATCH] test(e2e): use port assigner --- test/e2e/Progress.test.js | 5 +++-- test/ports-map.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/e2e/Progress.test.js b/test/e2e/Progress.test.js index a454f8633a..b735181d58 100644 --- a/test/e2e/Progress.test.js +++ b/test/e2e/Progress.test.js @@ -8,6 +8,7 @@ const { resolve } = require('path'); const testServer = require('../helpers/test-server'); const reloadConfig = require('../fixtures/reload-config/webpack.config'); const runBrowser = require('../helpers/run-browser'); +const port = require('../ports-map').Progress; const cssFilePath = resolve(__dirname, '../fixtures/reload-config/main.css'); @@ -19,7 +20,7 @@ describe('client progress', () => { 'body { background-color: rgb(0, 0, 255); }' ); const options = { - port: 9000, + port, host: '0.0.0.0', inline: true, hot: true, @@ -56,7 +57,7 @@ describe('client progress', () => { }); }); - page.goto('http://localhost:9000/main'); + page.goto(`http://localhost:${port}/main`); page.on('console', ({ _text }) => { res.push(_text); }); diff --git a/test/ports-map.js b/test/ports-map.js index eee60008e4..fdd25602fa 100644 --- a/test/ports-map.js +++ b/test/ports-map.js @@ -35,6 +35,7 @@ const portsList = { 'sockPath-option': 1, 'stats-option': 1, ProvidePlugin: 1, + Progress: 1, }; let startPort = 8079;