diff --git a/CHANGELOG.md b/CHANGELOG.md index beebf28e..6c85199f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## [v0.19.0](https://github.com/joomcode/e2ed/tree/v0.19.0) (2024-11-19) + +[Full Changelog](https://github.com/joomcode/e2ed/compare/v0.18.16...v0.19.0) + +- [Merge pull request #94 from joomcode/feat/support-for-multiple-windows](https://github.com/joomcode/e2ed/commit/06e36e4f6575764a9194a794dd3a8112c9ae6571) ([uid11](https://github.com/uid11)) + + feat: support multiple tabs + +- [FI-1434 fix: logs of actual values in `expect`'s assert functions](https://github.com/joomcode/e2ed/commit/457e51a83b2bcd3493b994a01ddd37561a2c1e22) ([uid11](https://github.com/uid11)) + + chore: updat Playwright to 1.49.0 + + chore: update devDependencies (`husky`, etc) + +- [FI-1512 fix: add tests for `waitForAllRequestsComplete`](https://github.com/joomcode/e2ed/commit/f7da93c3d839367c875b2aa85a7420f131f2dea8) ([uid11](https://github.com/uid11)) +- [FI-1512 feat: restore `waitForAllRequestsComplete` action](https://github.com/joomcode/e2ed/commit/6cac69fec661b5397969cd9956b963bf8a76a689) ([uid11](https://github.com/uid11)) +- [FI-1506 fix: bin command `e2ed-install-browsers`](https://github.com/joomcode/e2ed/commit/5b1c35b01f7e9209d31f4f63aa249da4a0d70cf5) ([uid11](https://github.com/uid11)) +- [FI-1434 feat: add links to `trace.zip` in HTML report](https://github.com/joomcode/e2ed/commit/aa1658a047a2f6ee002100ae2157fab630cb0275) ([uid11](https://github.com/uid11)) +- [FI-1432 fix: Playwright timeout for test with `waitBeforeRetry`](https://github.com/joomcode/e2ed/commit/a3276ca831cdd68178f0a4b578e803e30cb24dcc) ([uid11](https://github.com/uid11)) +- [FI-1434 feat: add links to `trace.zip` in HTML report](https://github.com/joomcode/e2ed/commit/da61cbacb23b6243462ea8bf2c91be28a97caa43) ([uid11](https://github.com/uid11)) +- [FI-1476 feat: add actions for switching tabs](https://github.com/joomcode/e2ed/commit/321866c7178fc37218201f3e1976e87fce968d0d) ([uid11](https://github.com/uid11)) + + tests: add tests for `waitForStartOfPageLoad` action + + fix: `waitForStartOfPageLoad` first call + + fix: add logs to `waitForStartOfPageLoad` actoin + + fix: add logs to actions for switching tabs + +- [FI-1434 feat: add action `waitForStartOfPageLoad`](https://github.com/joomcode/e2ed/commit/90e2d7748e4bfd6c45cddc21fc09fc1ef01c9063) ([uid11](https://github.com/uid11)) + ## [v0.18.16](https://github.com/joomcode/e2ed/tree/v0.18.16) (2024-11-03) [Full Changelog](https://github.com/joomcode/e2ed/compare/v0.18.15...v0.18.16) diff --git a/docs/index.html b/docs/index.html index d8cad48b..0c974728 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,7 +7,7 @@ report.html @@ -797,7 +797,7 @@ const createLocatorOptions = {"attributesOptions":{"parameterAttributePrefix":"data-test-","testIdAttribute":"data-testid","testIdSeparator":"-"},"isProduction":false}; var locator; -const reportClientState = {"fullTestRuns":[],"lengthOfReadedJsonReportDataParts":0,"pathToScreenshotsDirectoryForReport":"./screenshots","readJsonReportDataObservers":[]}; +const reportClientState = {"fullTestRuns":[],"internalDirectoryName":"internal","lengthOfReadedJsonReportDataParts":0,"pathToScreenshotsDirectoryForReport":"./screenshots","readJsonReportDataObservers":[]}; ; @@ -1118,7 +1118,7 @@ return createSafeHtmlWithoutSanitize `${stepHtmls.join('')}`; } function renderTestRunDescription(fullTestRun) { - const { endTimeInMs, startTimeInMs } = fullTestRun; + const { endTimeInMs, outputDirectoryName, runError, startTimeInMs } = fullTestRun; const durationInMs = endTimeInMs - startTimeInMs; const { meta } = fullTestRun.options; const metaHtmls = []; @@ -1129,10 +1129,23 @@
${valueWithLinks}
`; metaHtmls.push(metaHtml); } + let traceHtml = createSafeHtmlWithoutSanitize ``; + if (runError !== undefined) { + const { internalDirectoryName } = reportClientState; + const traceLabel = 'Download trace'; + const traceName = 'trace.zip'; + const traceUrl = `./${internalDirectoryName}/${outputDirectoryName}/${traceName}`; + traceHtml = sanitizeHtml ` +
${traceLabel}
+
+ ${traceName} +
`; + } const metaProperties = createSafeHtmlWithoutSanitize `${metaHtmls.join('')}`; return sanitizeHtml `
${metaProperties} + ${traceHtml}
Date
${renderDatesInterval({ endTimeInMs, startTimeInMs })} @@ -1244,34 +1257,51 @@

Execution

+data-testid="RetryButton" data-test-disabled="false" data-test-retry="1" data-test-selected="false" +>Retry 1
-
+
-
+ +
+ +

Retry 2

+

+ – + UTC + (270ms) +

+
@@ -1404,6 +1444,6 @@

Retry 1

data-testid="column2" >

No test selected

- + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 57612bce..7849681c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "e2ed", - "version": "0.18.16", + "version": "0.19.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "e2ed", - "version": "0.18.16", + "version": "0.19.0", "license": "MIT", "dependencies": { "@playwright/test": "1.49.0", diff --git a/package.json b/package.json index b1544c40..e592e791 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "e2ed", - "version": "0.18.16", + "version": "0.19.0", "description": "E2E testing framework over Playwright", "keywords": [ "E2E",