You can extend Playwright assertions by providing custom matchers. These matchers will be available on the expect object.
import { expect as baseExpect } from '@playwright/test';
export const expect = baseExpect.extend({
async toHaveAmount(locator: Locator, expected: number, options?: { timeout?: number }) {
// ... see documentation for how to write matchers.
},
});
You can now merge test fixtures from multiple files or modules:
import { mergeTests } from '@playwright/test';
import { test as dbTest } from 'database-test-utils';
import { test as a11yTest } from 'a11y-test-utils';
export const test = mergeTests(dbTest, a11yTest);
import { test } from './fixtures';
test('passes', async ({ database, page, a11y }) => {
// use database and a11y fixtures.
});
Merge custom expect matchers
You can now merge custom expect matchers from multiple files or modules:
import { mergeTests, mergeExpects } from '@playwright/test';
import { test as dbTest, expect as dbExpect } from 'database-test-utils';
import { test as a11yTest, expect as a11yExpect } from 'a11y-test-utils';
export const test = mergeTests(dbTest, a11yTest);
</tr></table>
Bumps the dev-major group with 10 updates:
1.37.1
1.39.0
2.0.0
2.3.0
0.1.0
0.2.2
1.24.1
1.25.2
20.5.9
20.8.5
6.6.0
6.7.5
6.6.0
6.7.5
8.48.0
8.51.0
2.33.0
2.34.0
1.6.1
1.8.0
Updates
@playwright/test
from 1.37.1 to 1.39.0Release notes
Sourced from
@playwright/test
's releases.... (truncated)
Commits
3049d99
cherry-pick(#27555): chore: composed->mergeae31f58
chore: mark 1.39.0 (#27550)5313514
cherry-pick(#27549): docs: update release notes for 1.390d168dc
chore: release notes for 1.39 (#27537)4f9b285
chore: update WebKit version to 17.4 (#27536)d11380e
docs: improve test.step documentation (#27535)9edb811
feat(chromium-tip-of-tree): roll to r1158 (#27533)d05c865
test: unflake a few tests (#27519)2776d84
docs: how to update playwright in python (#27527)2407041
fix(chromium): avoid premature continue of redirects (#27520)Updates
@skeletonlabs/skeleton
from 2.0.0 to 2.3.0Release notes
Sourced from
@skeletonlabs/skeleton
's releases.... (truncated)
Commits
cb4574e
Merge pull request #2131 from skeletonlabs/changeset-release/master8b2527f
chore(release): version package3a30de2
Merge fore release 10/10 (#2130)5b9aab9
Merge pull request #2079 from skeletonlabs/changeset-release/masterfe5755d
chore(release): version packagecfc4aad
Merge pull request #2078 from niktek/bugfix/csa-postcss-extension6d50baf
Changeset80fa905
Changed back to cjs file extension5bcf1da
updated tw-settings.json1085dfe
Merge pull request #2076 from skeletonlabs/changeset-release/masterUpdates
@skeletonlabs/tw-plugin
from 0.1.0 to 0.2.2Release notes
Sourced from
@skeletonlabs/tw-plugin
's releases.Commits
cb4574e
Merge pull request #2131 from skeletonlabs/changeset-release/master8b2527f
chore(release): version package3a30de2
Merge fore release 10/10 (#2130)5b9aab9
Merge pull request #2079 from skeletonlabs/changeset-release/masterfe5755d
chore(release): version packagecfc4aad
Merge pull request #2078 from niktek/bugfix/csa-postcss-extension6d50baf
Changeset80fa905
Changed back to cjs file extension5bcf1da
updated tw-settings.json1085dfe
Merge pull request #2076 from skeletonlabs/changeset-release/masterUpdates
@sveltejs/kit
from 1.24.1 to 1.25.2Release notes
Sourced from
@sveltejs/kit
's releases.Changelog
Sourced from
@sveltejs/kit
's changelog.Commits
c4a5f6c
Version Packages (#10784)9bc6e62
fix:popstate
navigation wasn't cancelling ongoingnavigation()
calls whe...f8aacaf
fix: correctly update$page.url.hash
when navigating history (#10843)715dfdd
fix: specifiedinitial-scale=1
on all viewport meta tags (#10793)6bfcff2
chore: update vitest to 0.34.5 (#10790)4b32c5b
fix: move Vite file removal to adapter methods (#10782)b30cb40
chore: upgrade to Vite 4.4.9 (#10787)34f1ec5
fix: strip virtual module prefix from error messages (#10776)550db0a
Version Packages (#10728)6089bc1
fix: correct line numbers when console logging stack traces (#10769)Updates
@types/node
from 20.5.9 to 20.8.5Commits
Updates
@typescript-eslint/eslint-plugin
from 6.6.0 to 6.7.5Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.... (truncated)
Commits
36aecb6
chore: publish v6.7.5db40a0a
fix(eslint-plugin): [prefer-string-starts-ends-with] only report slice/substr...8f4d939
docs: fix prefer-optional-chain example for the unsafe fixes option (#7711)d948dc4
chore: publish v6.7.491a3e0c
chore: publish v6.7.3dec6cbe
docs(eslint-plugin): replaced the Out-of-date TS error codes in eslint-recomm...ddb8589
chore: publish v6.7.2aefb268
chore: publish v6.7.19cf757a
chore(eslint-plugin): refactor getTypeFromNode to parserServices.getTypeAtLoc...e0cb751
docs(eslint-plugin): add warning about superfluous rules with typescript (#7372)Updates
@typescript-eslint/parser
from 6.6.0 to 6.7.5Release notes
Sourced from
@typescript-eslint/parser
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/parser
's changelog.... (truncated)
Commits
36aecb6
chore: publish v6.7.5d948dc4
chore: publish v6.7.491a3e0c
chore: publish v6.7.3ddb8589
chore: publish v6.7.2aefb268
chore: publish v6.7.1ad46b12
chore(deps): update jest to v29.7.0 (#7651)79ffff0
chore: publish v6.7.0Updates
eslint
from 8.48.0 to 8.51.0Release notes
Sourced from eslint's releases.
... (truncated)
Changelog
Sourced from eslint's changelog.
... (truncated)
Commits
f079382
8.51.0e8235e5
Build: changelog update for 8.51.01ef39ea
chore: upgrade@eslint/js
@8
.51.0 (#17624)f8c7403
chore: package.json update for@eslint/js
releasef976b2f
fix: make rule severity case-sensitive in flat config (#17619)0edfe36
fix: Ensure crash error messages are not duplicated (#17584)ee5be81
docs: default tosourceType: "module"
in rule examples (#17615)dd79abc
fix:eslint-disable
to be able to parse quoted rule names (#17612)d2f6801
fix: Ensure correct code path for && followed by ?? (#17618)2665552
test: fix flat config linter tests to use Linter in flat config mode (#17616)Updates
eslint-plugin-svelte
from 2.33.0 to 2.34.0Release notes
Sourced from eslint-plugin-svelte's releases.
Changelog
Sourced from eslint-plugin-svelte's changelog.