@brillout/test-e2e 0.4.15 → 0.4.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/runAll.js +2 -2
  2. package/package.json +1 -1
package/dist/runAll.js CHANGED
@@ -65,6 +65,8 @@ async function runServerAndTests(browser, isSecondAttempt) {
65
65
  (0, utils_1.assert)(testInfo.startServer);
66
66
  (0, utils_1.assert)(testInfo.terminateServer);
67
67
  const isFinalAttempt = isSecondAttempt || !testInfo.runInfo.isFlaky;
68
+ const page = await browser.newPage();
69
+ testInfo.page = page;
68
70
  try {
69
71
  await testInfo.startServer();
70
72
  }
@@ -72,8 +74,6 @@ async function runServerAndTests(browser, isSecondAttempt) {
72
74
  logFailure(err, 'an error occurred while starting the server', isFinalAttempt);
73
75
  return false;
74
76
  }
75
- const page = await browser.newPage();
76
- testInfo.page = page;
77
77
  let success = await runTests(testInfo, isFinalAttempt);
78
78
  await testInfo.terminateServer();
79
79
  await page.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/test-e2e",
3
- "version": "0.4.15",
3
+ "version": "0.4.16",
4
4
  "bin": "./bin.js",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {