hmcts / et-xui-e2e-tests

Employment Tribunal XUI E2E Tests
0 stars 1 forks source link

Update dependency codeceptjs to v3.5.11 #288

Closed renovate[bot] closed 10 months ago

renovate[bot] commented 11 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
codeceptjs (source) 3.5.8 -> 3.5.11 age adoption passing confidence

Release Notes

Codeception/codeceptjs (codeceptjs) ### [`v3.5.11`](https://togithub.com/Codeception/codeceptjs/blob/HEAD/CHANGELOG.md#3511) [Compare Source](https://togithub.com/Codeception/codeceptjs/compare/3.5.10...3.5.11) ❀️ Thanks all to those who contributed to make this release! ❀️ πŸ›©οΈ *Features* - feat: other locators from playwright ([#​4090](https://togithub.com/Codeception/codeceptjs/issues/4090)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - CodeceptJS - Playwright now supports other locators like - React (https://playwright.dev/docs/other-locators#react-locator), - Vue (https://playwright.dev/docs/other-locators#vue-locator) ![Vue Locators](https://togithub.com/codeceptjs/CodeceptJS/assets/7845001/841e9e54-847b-4326-b95f-f9406955a3ce) ![Example](https://togithub.com/codeceptjs/CodeceptJS/assets/7845001/763e6788-143b-4a00-a249-d9ca5f0b2a09) πŸ› *Bug Fixes* - fix: step object is broken when step arg is a function ([#​4092](https://togithub.com/Codeception/codeceptjs/issues/4092)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: step object is broken when step arg contains joi object ([#​4084](https://togithub.com/Codeception/codeceptjs/issues/4084)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix(expect helper): custom error message as optional param ([#​4082](https://togithub.com/Codeception/codeceptjs/issues/4082)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix(puppeteer): hide deprecation info ([#​4075](https://togithub.com/Codeception/codeceptjs/issues/4075)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: seeattributesonelements throws error when attribute doesn't exist ([#​4073](https://togithub.com/Codeception/codeceptjs/issues/4073)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: typo in agrs ([#​4077](https://togithub.com/Codeception/codeceptjs/issues/4077)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: retryFailedStep is disabled for non tryTo steps ([#​4069](https://togithub.com/Codeception/codeceptjs/issues/4069)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix(typings): scrollintoview complains scrollintoviewoptions ([#​4067](https://togithub.com/Codeception/codeceptjs/issues/4067)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) πŸ“– *Documentation* - fix(docs): some doc blocks are broken ([#​4076](https://togithub.com/Codeception/codeceptjs/issues/4076)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix(docs): expect docs ([#​4058](https://togithub.com/Codeception/codeceptjs/issues/4058)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) ### [`v3.5.10`](https://togithub.com/Codeception/codeceptjs/blob/HEAD/CHANGELOG.md#3510) [Compare Source](https://togithub.com/Codeception/codeceptjs/compare/3.5.9...3.5.10) ❀️ Thanks all to those who contributed to make this release! ❀️ πŸ›©οΈ *Features* - feat: expose WebElement ([#​4043](https://togithub.com/Codeception/codeceptjs/issues/4043)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) Now we expose the WebElements that are returned by the WebHelper and you could make the subsequence actions on them. // Playwright helper would return the Locator I.amOnPage('/form/focus_blur_elements'); const webElements = await I.grabWebElements('#button'); webElements[0].click(); - feat(playwright): support HAR replaying ([#​3990](https://togithub.com/Codeception/codeceptjs/issues/3990)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) Replaying from HAR // Replay API requests from HAR. // Either use a matching response from the HAR, // or abort the request if nothing matches. I.replayFromHar('./output/har/something.har', { url: "*/**/api/v1/fruits" }); I.amOnPage('https://demo.playwright.dev/api-mocking'); I.see('CodeceptJS'); [Parameters] harFilePath [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) Path to recorded HAR file opts [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)? [Options for replaying from HAR](https://playwright.dev/docs/api/class-page#page-route-from-har) - feat(playwright): support HAR recording ([#​3986](https://togithub.com/Codeception/codeceptjs/issues/3986)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) A HAR file is an HTTP Archive file that contains a record of all the network requests that are made when a page is loaded. It contains information about the request and response headers, cookies, content, timings, and more. You can use HAR files to mock network requests in your tests. HAR will be saved to output/har. More info could be found here https://playwright.dev/docs/api/class-browser#browser-new-context-option-record-har. ... recordHar: { mode: 'minimal', // possible values: 'minimal'|'full'. content: 'embed' // possible values: "omit"|"embed"|"attach". } ... - improvement(playwright): support partial string for option ([#​4016](https://togithub.com/Codeception/codeceptjs/issues/4016)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) await I.amOnPage('/form/select'); await I.selectOption('Select your age', '21-'); πŸ› *Bug Fixes* - fix(playwright): proceedSee could not find the element ([#​4006](https://togithub.com/Codeception/codeceptjs/issues/4006)) - by [@​hatufacci](https://togithub.com/hatufacci) - fix(appium): remove the vendor prefix of 'bstack:options' ([#​4053](https://togithub.com/Codeception/codeceptjs/issues/4053)) - by [@​mojtabaalavi](https://togithub.com/mojtabaalavi) - fix(workers): event improvements ([#​3953](https://togithub.com/Codeception/codeceptjs/issues/3953)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) Emit the new event: event.workers.result. CodeceptJS also exposes the env var `process.env.RUNS_WITH_WORKERS` when running tests with run-workers command so that you could handle the events better in your plugins/helpers. const { event } = require('codeceptjs'); module.exports = function() { // this event would trigger the `_publishResultsToTestrail` when running `run-workers` command event.dispatcher.on(event.workers.result, async () => { await _publishResultsToTestrail(); }); // this event would not trigger the `_publishResultsToTestrail` multiple times when running `run-workers` command event.dispatcher.on(event.all.result, async () => { // when running `run` command, this env var is undefined if (!process.env.RUNS_WITH_WORKERS) await _publishResultsToTestrail(); }); } - fix: ai html updates ([#​3962](https://togithub.com/Codeception/codeceptjs/issues/3962)) - by [@​DavertMik](https://togithub.com/DavertMik) replaced minify library with a modern and more secure fork. Fixes html-minifier@4.0.0 Regular Expression Denial of Service vulnerability #​3829 AI class is implemented as singleton refactored heal.js plugin to work on edge cases add configuration params on number of fixes performed by ay heal improved recorder class to add more verbose log improved recorder class to ignore some of errors - fix(appium): closeApp supports both Android/iOS ([#​4046](https://togithub.com/Codeception/codeceptjs/issues/4046)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: some security vulnerability of some packages ([#​4045](https://togithub.com/Codeception/codeceptjs/issues/4045)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: seeAttributesOnElements check condition ([#​4029](https://togithub.com/Codeception/codeceptjs/issues/4029)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: waitForText locator issue ([#​4039](https://togithub.com/Codeception/codeceptjs/issues/4039)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) Fixed this error: locator.isVisible: Unexpected token "s" while parsing selector ":has-text('Were you able to resolve the resident's issue?') >> nth=0" at Playwright.waitForText (node_modules\codeceptjs\lib\helper\Playwright.js:2584:79) - fix: move to sha256 ([#​4038](https://togithub.com/Codeception/codeceptjs/issues/4038)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: respect retries from retryfailedstep plugin in helpers ([#​4028](https://togithub.com/Codeception/codeceptjs/issues/4028)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) Currently inside the _before() of helpers for example Playwright, the retries is set there, however, when retryFailedStep plugin is enabled, the retries of recorder is still using the value from _before() not the value from retryFailedStep plugin. Fix: - introduce the process.env.FAILED_STEP_RETIRES which could be access everywhere as the helper won't know anything about the plugin. - set default retries of Playwright to 3 to be on the same page with Puppeteer. - fix: examples in test title ([#​4030](https://togithub.com/Codeception/codeceptjs/issues/4030)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) When test title doesn't have the data in examples: Feature: Faker examples Scenario Outline: Below are the users Examples: | user | role | | John | admin | | Tim | client | Faker examples -- [1] Starting recording promises Timeouts: Below are the users {"user":"John","role":"admin"} βœ” OK in 4ms Below are the users {"user":"Tim","role":"client"} βœ” OK in 1ms When test title includes the data in examples: Feature: Faker examples Scenario Outline: Below are the users - - Examples: | user | role | | John | admin | | Tim | client | Faker examples -- [1] Starting recording promises Timeouts: Below are the users - John - admin βœ” OK in 4ms Below are the users - Tim - client βœ” OK in 1ms - fix: disable retryFailedStep when using with tryTo ([#​4022](https://togithub.com/Codeception/codeceptjs/issues/4022)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: locator builder returns error when class name contains hyphen ([#​4024](https://togithub.com/Codeception/codeceptjs/issues/4024)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: seeCssPropertiesOnElements failed when font-weight is a number ([#​4026](https://togithub.com/Codeception/codeceptjs/issues/4026)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix(appium): missing await on some steps of runOnIOS and runOnAndroid ([#​4018](https://togithub.com/Codeception/codeceptjs/issues/4018)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix(cli): no error of failed tests when using retry with scenario only ([#​4020](https://togithub.com/Codeception/codeceptjs/issues/4020)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: set getPageTimeout to 30s ([#​4031](https://togithub.com/Codeception/codeceptjs/issues/4031)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix(appium): expose switchToContext ([#​4015](https://togithub.com/Codeception/codeceptjs/issues/4015)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: promise issue ([#​4013](https://togithub.com/Codeception/codeceptjs/issues/4013)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: seeCssPropertiesOnElements issue with improper condition ([#​4057](https://togithub.com/Codeception/codeceptjs/issues/4057)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) πŸ“– *Documentation* - docs: Update clearCookie documentation for Playwright helper ([#​4005](https://togithub.com/Codeception/codeceptjs/issues/4005)) - by [@​Hellosager](https://togithub.com/Hellosager) - docs: improve the example code for autoLogin ([#​4019](https://togithub.com/Codeception/codeceptjs/issues/4019)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) ![Screenshot 2023-11-22 at 14 40 11](https://togithub.com/codeceptjs/CodeceptJS/assets/7845001/c05ac436-efd0-4bc0-a46c-386f915c0f17) ### [`v3.5.9`](https://togithub.com/codeceptjs/CodeceptJS/releases/tag/3.5.9) [Compare Source](https://togithub.com/Codeception/codeceptjs/compare/3.5.8...3.5.9) ❀️ Thanks all to those who contributed to make this release! ❀️ πŸ›©οΈ *Features* - feat: expose WebElement ([#​4043](https://togithub.com/Codeception/codeceptjs/issues/4043)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) Now we expose the WebElements that are returned by the WebHelper and you could make the subsequence actions on them. // Playwright helper would return the Locator I.amOnPage('/form/focus_blur_elements'); const webElements = await I.grabWebElements('#button'); webElements[0].click(); - feat(playwright): support HAR replaying ([#​3990](https://togithub.com/Codeception/codeceptjs/issues/3990)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) Replaying from HAR // Replay API requests from HAR. // Either use a matching response from the HAR, // or abort the request if nothing matches. I.replayFromHar('./output/har/something.har', { url: "*/**/api/v1/fruits" }); I.amOnPage('https://demo.playwright.dev/api-mocking'); I.see('CodeceptJS'); [Parameters] harFilePath [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) Path to recorded HAR file opts [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)? [Options for replaying from HAR](https://playwright.dev/docs/api/class-page#page-route-from-har) - feat(playwright): support HAR recording ([#​3986](https://togithub.com/Codeception/codeceptjs/issues/3986)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) A HAR file is an HTTP Archive file that contains a record of all the network requests that are made when a page is loaded. It contains information about the request and response headers, cookies, content, timings, and more. You can use HAR files to mock network requests in your tests. HAR will be saved to output/har. More info could be found here https://playwright.dev/docs/api/class-browser#browser-new-context-option-record-har. ... recordHar: { mode: 'minimal', // possible values: 'minimal'|'full'. content: 'embed' // possible values: "omit"|"embed"|"attach". } ... - improvement(playwright): support partial string for option ([#​4016](https://togithub.com/Codeception/codeceptjs/issues/4016)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) await I.amOnPage('/form/select'); await I.selectOption('Select your age', '21-'); πŸ› *Bug Fixes* - fix(playwright): proceedSee could not find the element ([#​4006](https://togithub.com/Codeception/codeceptjs/issues/4006)) - by [@​hatufacci](https://togithub.com/hatufacci) - fix(appium): remove the vendor prefix of 'bstack:options' ([#​4053](https://togithub.com/Codeception/codeceptjs/issues/4053)) - by [@​mojtabaalavi](https://togithub.com/mojtabaalavi) - fix(workers): event improvements ([#​3953](https://togithub.com/Codeception/codeceptjs/issues/3953)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) Emit the new event: event.workers.result. CodeceptJS also exposes the env var `process.env.RUNS_WITH_WORKERS` when running tests with run-workers command so that you could handle the events better in your plugins/helpers. const { event } = require('codeceptjs'); module.exports = function() { // this event would trigger the `_publishResultsToTestrail` when running `run-workers` command event.dispatcher.on(event.workers.result, async () => { await _publishResultsToTestrail(); }); // this event would not trigger the `_publishResultsToTestrail` multiple times when running `run-workers` command event.dispatcher.on(event.all.result, async () => { // when running `run` command, this env var is undefined if (!process.env.RUNS_WITH_WORKERS) await _publishResultsToTestrail(); }); } - fix: ai html updates ([#​3962](https://togithub.com/Codeception/codeceptjs/issues/3962)) - by [@​davert](https://togithub.com/davert) replaced minify library with a modern and more secure fork. Fixes html-minifier@4.0.0 Regular Expression Denial of Service vulnerability #​3829 AI class is implemented as singleton refactored heal.js plugin to work on edge cases add configuration params on number of fixes performed by ay heal improved recorder class to add more verbose log improved recorder class to ignore some of errors - fix(appium): closeApp supports both Android/iOS ([#​4046](https://togithub.com/Codeception/codeceptjs/issues/4046)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: some security vulnerability of some packages ([#​4045](https://togithub.com/Codeception/codeceptjs/issues/4045)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: seeAttributesOnElements check condition ([#​4029](https://togithub.com/Codeception/codeceptjs/issues/4029)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: waitForText locator issue ([#​4039](https://togithub.com/Codeception/codeceptjs/issues/4039)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) Fixed this error: locator.isVisible: Unexpected token "s" while parsing selector ":has-text('Were you able to resolve the resident's issue?') >> nth=0" at Playwright.waitForText (node_modules\codeceptjs\lib\helper\Playwright.js:2584:79) - fix: move to sha256 ([#​4038](https://togithub.com/Codeception/codeceptjs/issues/4038)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: respect retries from retryfailedstep plugin in helpers ([#​4028](https://togithub.com/Codeception/codeceptjs/issues/4028)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) Currently inside the _before() of helpers for example Playwright, the retries is set there, however, when retryFailedStep plugin is enabled, the retries of recorder is still using the value from _before() not the value from retryFailedStep plugin. Fix: - introduce the process.env.FAILED_STEP_RETIRES which could be access everywhere as the helper won't know anything about the plugin. - set default retries of Playwright to 3 to be on the same page with Puppeteer. - fix: examples in test title ([#​4030](https://togithub.com/Codeception/codeceptjs/issues/4030)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) When test title doesn't have the data in examples: Feature: Faker examples Scenario Outline: Below are the users Examples: | user | role | | John | admin | | Tim | client | Faker examples -- [1] Starting recording promises Timeouts: Below are the users {"user":"John","role":"admin"} βœ” OK in 4ms Below are the users {"user":"Tim","role":"client"} βœ” OK in 1ms When test title includes the data in examples: Feature: Faker examples Scenario Outline: Below are the users - - Examples: | user | role | | John | admin | | Tim | client | Faker examples -- [1] Starting recording promises Timeouts: Below are the users - John - admin βœ” OK in 4ms Below are the users - Tim - client βœ” OK in 1ms - fix: disable retryFailedStep when using with tryTo ([#​4022](https://togithub.com/Codeception/codeceptjs/issues/4022)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: locator builder returns error when class name contains hyphen ([#​4024](https://togithub.com/Codeception/codeceptjs/issues/4024)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: seeCssPropertiesOnElements failed when font-weight is a number ([#​4026](https://togithub.com/Codeception/codeceptjs/issues/4026)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix(appium): missing await on some steps of runOnIOS and runOnAndroid ([#​4018](https://togithub.com/Codeception/codeceptjs/issues/4018)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix(cli): no error of failed tests when using retry with scenario only ([#​4020](https://togithub.com/Codeception/codeceptjs/issues/4020)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: set getPageTimeout to 30s ([#​4031](https://togithub.com/Codeception/codeceptjs/issues/4031)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix(appium): expose switchToContext ([#​4015](https://togithub.com/Codeception/codeceptjs/issues/4015)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: promise issue ([#​4013](https://togithub.com/Codeception/codeceptjs/issues/4013)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) - fix: seeCssPropertiesOnElements issue with improper condition ([#​4057](https://togithub.com/Codeception/codeceptjs/issues/4057)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) πŸ“– *Documentation* - docs: Update clearCookie documentation for Playwright helper ([#​4005](https://togithub.com/Codeception/codeceptjs/issues/4005)) - by [@​Hellosager](https://togithub.com/Hellosager) - docs: improve the example code for autoLogin ([#​4019](https://togithub.com/Codeception/codeceptjs/issues/4019)) - by [@​KobeNguyenT](https://togithub.com/KobeNguyenT) ![Screenshot 2023-11-22 at 14 40 11](https://togithub.com/codeceptjs/CodeceptJS/assets/7845001/c05ac436-efd0-4bc0-a46c-386f915c0f17) #### New Contributors - [@​Hellosager](https://togithub.com/Hellosager) made their first contribution in [https://github.com/codeceptjs/CodeceptJS/pull/4005](https://togithub.com/codeceptjs/CodeceptJS/pull/4005) - [@​mojtabaalavi](https://togithub.com/mojtabaalavi) made their first contribution in [https://github.com/codeceptjs/CodeceptJS/pull/4053](https://togithub.com/codeceptjs/CodeceptJS/pull/4053) **Full Changelog**: https://github.com/codeceptjs/CodeceptJS/compare/3.5.8...3.5.9

Configuration

πŸ“… Schedule: Branch creation - "after 7am and before 11am every weekday" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.