TestCafe v3.4.0 introduces relative Role URLs, the ability to disable concurrency on a per-fixture basis, as well as other improvements and bug fixes.
Enhancements
Relative Role URLs
Earlier versions of TestCafe did not support relative URLs for Role log-in pages. In TestCafe v3.4.0 and higher, if you set the baseUrl configuration file parameter or the --base-url CLI option, you can set a relative URL for a Role log-in page:
import { Role } from 'testcafe';
const userOne = Role('./login', async t => {
/* log-in actions go here */
});
Disable concurrency on a per-fixture basis
Concurrent test execution is not suitable for tests that can only run in a certain order. To ignore the global concurrency setting for a particular fixture, use the disableConcurrency fixture method.
When you debug code inside a browser, the browser can appear unresponsive. Earlier versions of TestCafe automatically relaunched unresponsive browsers, including browsers that were used for debugging.
TestCafe v3.4.0 does not relaunch unresponsive browsers if you enter development mode.
Debug Panel Enhancements
The debug panel includes a new "Hide Picker" button. Click this button to disable the Selector Debugger and hide the Selector input field.
Bug Fixes
TestCafe incorrectly logs requests during concurrent test execution (#7977)
TestCafe does not load images with non-lowercase srcset attribute declarations (testcafe-hammerhead#2958)
TestCafe raises an unexpected client-side error when the application opens an ngx-formly form (#7758)
TestCafe cannot interact with page items at the edge of the viewport when the browser emulates a mobile device (#8057)
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 show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@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 testcafe from 3.3.0 to 3.4.0.
Release notes
Sourced from testcafe's releases.
... (truncated)
Changelog
Sourced from testcafe's changelog.
Commits
4d14d66
release: v3.4.0 (#8075)d55e8b8
release: v3.4.0-rc.3 (#8073)e141279
refactor: refactor disableConcurrency from function to getter (#8068)b3831dc
fix:Hide Picker
button fixed for Mac (#8070)b99c72c
release: v3.4.0-rc.2 (#8065)095273d
build: bump hammerhead version to 31.6.3 (#8062)632a116
release: v3.4.0-rc.1 (#8061)ea9f331
build: upd babel vesrion (#8056)67def67
build: TRAVIS environment variable for desktop tests disabled (#8059)f924899
Bug template modifications (#7992)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 show