Introduced JSONResponse helper which connects to REST, GraphQL or Playwright helper
[REST] Added amBearerAuthenticated method
[REST] Added haveRequestHeaders method
Added dependency on joi and chai
[Playwright] Added timeout option to set timeout for all Playwright actions. If an action fails, Playwright keeps retrying it for a time set by timeout.
[Playwright] Possible breaking change. By default timeout is set to 1000ms. Previous default was set by Playwright internally to 30s. This was causing contradiction to CodeceptJS retries, so triggered up to 3 retries for 30s of time. This timeout option was lowered so retryFailedStep plugin would not cause long delays.
[Playwright] Updated restart config option to include 3 restart strategies:
'context' or false - restarts browser context but keeps running browser. Recommended by Playwright team to keep tests isolated.
'browser' or true - closes browser and opens it again between tests.
'session' or 'keep' - keeps browser context and session, but cleans up cookies and localStorage between tests. The fastest option when running tests in windowed mode. Works with keepCookies and keepBrowserState options. This behavior was default prior CodeceptJS 3.1
[Playwright] Extended methods to provide more options from engine. These methods were updated so additional options can be be passed as the last argument:
// use Playwright click options as 3rd argument
I.click('canvas', '.model', { position: { x: 20, y: 40 } })
// check option also has options
I.checkOption('Agree', '.signup', { position: { x: 5, y: 5 } })
eachElement plugin introduced. It allows you to iterate over elements and perform some action on them using direct engines API
await eachElement('click all links in .list', '.list a', (el) => {
await el.click();
})
[Playwright] Added support to playwright-core package if playwright is not installed. See #3190, fixes #2663.
[Playwright] Added makeApiRequest action to perform API requests. Requires Playwright >= 1.18
Added support to codecept.config.js for name consistency across other JS tools. See motivation at #3195 by @JiLiZART
[ApiDataFactory] Added options arg to have method. See #3197 by @JJlokidoki
Improved pt-br translations to include keywords: 'Funcionalidade', 'Cenário', 'Antes', 'Depois', 'AntesDaSuite', 'DepoisDaSuite'. See #3206 by @danilolutz
[allure plugin] Introduced addStep method to add comments and attachments. See #3104 by @EgorBodnar
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps codeceptjs from 3.2.2 to 3.3.0.
Changelog
Sourced from codeceptjs's changelog.
... (truncated)
Commits
87992d6
Merge branch 'master' of github.com:codeceptjs/CodeceptJS into 3.x2adcdbc
Merge branch '3.x' of github.com:codeceptjs/CodeceptJS into 3.x6b98086
3.3.0 release (#3229)31d1c12
Merge branch '3.x' of github.com:codeceptjs/CodeceptJS into 3.xe7feb0b
Api testing (#3227)93f2e20
DOCS(#2982) allure createStep public API description (#3104)fea2c38
Playwright keep session (#3226)3ecfb23
Reporter docs improv (#3224)c4d3f30
Update email.md (#3223)75658ac
Merge branch '3.x' of github.com:codeceptjs/CodeceptJS into 3.xDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)