Utilizing the new Clock API allows to manipulate and control time within tests to verify time-related behavior. This API covers many common scenarios, including:
testing with predefined time;
keeping consistent time and timers;
monitoring inactivity;
ticking through time manually.
// Initialize clock and let the page load naturally.
await page.clock.install({ time: new Date('2024-02-02T08:00:00') });
await page.goto('http://localhost:3333');
// Pretend that the user closed the laptop lid and opened it again at 10am,
// Pause the time once reached that point.
await page.clock.pauseAt(new Date('2024-02-02T10:00:00'));
// Assert the page state.
await expect(page.getByTestId('current-time')).toHaveText('2/2/2024, 10:00:00 AM');
// Close the laptop lid again and open it at 10:30am.
await page.clock.fastForward('30:00');
await expect(page.getByTestId('current-time')).toHaveText('2/2/2024, 10:30:00 AM');
New CLI option --fail-on-flaky-tests that sets exit code to 1 upon any flaky tests. Note that by default, the test runner exits with code 0 when all failed tests recovered upon a retry. With this option, the test run will fail in such case.
New enviroment variable PLAYWRIGHT_FORCE_TTY controls whether built-in list, line and dot reporters assume a live terminal. For example, this could be useful to disable tty behavior when your CI environment does not handle ANSI control sequences well. Alternatively, you can enable tty behavior even when to live terminal is present, if you plan to post-process the output and handle control sequences.
# Avoid TTY features that output ANSI control sequences
PLAYWRIGHT_FORCE_TTY=0 npx playwright test
fix: respect HTML attributes enctype and formenctype for forms with use:enhance (#12198)
fix: prevent client import error when a hooks.server file imports a private environment variable (#12195)
fix: set default Content-Type header to application/x-www-form-urlencoded for POST form submissions with use:enhance to align with native form behaviour (#12198)
fix: respect HTML attributes enctype and formenctype for forms with use:enhance (#12198)
fix: prevent client import error when a hooks.server file imports a private environment variable (#12195)
fix: set default Content-Type header to application/x-www-form-urlencoded for POST form submissions with use:enhance to align with native form behaviour (#12198)
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 major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the frontend group in /frontend with 9 updates:
1.6.5
1.6.7
1.44.1
1.45.0
2.5.17
2.5.18
20.14.8
20.14.9
9.5.0
9.6.0
2.40.0
2.41.0
8.4.38
8.4.39
3.8.1
3.8.4
5.3.1
5.3.2
Updates
@floating-ui/dom
from 1.6.5 to 1.6.7Release notes
Sourced from
@floating-ui/dom
's releases.Changelog
Sourced from
@floating-ui/dom
's changelog.Commits
bd2d065
Version Packages (#2958)00dc56c
chore: fix internal dependency versioning (#2957)d45094e
Version Packages (#2942)cd2b91d
chore: fix internal deps (#2950)39c8556
refactor: improve types and internal codebase consistency (#2948)d0e8027
fix(getContainingBlock): detect top layer elements (#2944)ccd638e
fix(types): add optionalgetClientRects()
method toVirtualElement
(#2943)Updates
@playwright/test
from 1.44.1 to 1.45.0Release notes
Sourced from
@playwright/test
's releases.... (truncated)
Commits
4f3f6ee
cherry-pick(#31421): docs: release notes for 1.45d557b7b
cherry-pick(#31420): docs(java): correctly parse time (#31422)1368bca
cherry-pick(#31419): docs: deprecatehandle
option inexposeBinding
6c3fc49
cherry-pick(#31404): feat(chromium): roll to r11244ae151f
cherry-pick(#31340): docs: add guide for print dialogsa11585f
cherry-pick(#31331): docs(test-parameterize): improve forEach exampleafcf8d2
cherry-pick(#31350): docs: fix typo in 1.45 release notes599d074
cherry-pick(#31356): fix(clock): throw for invalid date2451791
cherry-pick(#31357): fix(clock): under reused context56ca1e1
cherry-pick(#31369): docs: use long for time in milliseconds (#31371)Updates
@sveltejs/kit
from 2.5.17 to 2.5.18Release notes
Sourced from
@sveltejs/kit
's releases.Changelog
Sourced from
@sveltejs/kit
's changelog.Commits
c9b2e65
Version Packages (#12385)670608a
chore: upgrade to vite 5.3 and esbuild 0.21 (#12415)8429847
fix: addContent-Type
header forPOST
requests made byenhance
(#12198)5645614
fix: preventhooks.server
code being imported into client during build (#12...97d1085
docs: typo for use:enhance update function (#12384)Updates
@types/node
from 20.14.8 to 20.14.9Commits
Updates
eslint
from 9.5.0 to 9.6.0Release notes
Sourced from eslint's releases.
Changelog
Sourced from eslint's changelog.
Commits
473d1bb
9.6.0f435566
Build: changelog update for 9.6.0b15ee30
chore: upgrade@eslint/js
@9
.6.0 (#18632)d655503
chore: package.json update for@eslint/js
release1613e2e
fix: Allow escaping characters in config patterns on Windows (#18628)13dbecd
docs: Limit search to just docs (#18627)7c78ad9
refactor: Use language.visitorKeys and check for non-JS SourceCode (#18625)e2b16e2
feat: Implement feature flags (#18516)69ff64e
refactor: Return value of applyInlineConfig() (#18623)375227f
docs: Update getting-started.md - add pnpm to init eslint config (#18599)Updates
eslint-plugin-svelte
from 2.40.0 to 2.41.0Release notes
Sourced from eslint-plugin-svelte's releases.
Commits
f8f377f
chore: release eslint-plugin-svelte (#801)6e4d3ed
fix: updatesvelte-eslint-parser
to fix nested{#snippet}
(#805)be64d36
fix: broken indentation of if condition insvelte/indent
rule (#802)50f4f4f
chore(deps): update dependency typescript to ~5.5.00bc17df
chore: Use eslint types for exported configs (#789)580f44f
feat: add name to flat configs. (#800)ea25e3e
fix(deps): update dependency known-css-properties to ^0.34.0db95931
chore: add pnpm script to root package.json73115ce
fix(deps): update dependency known-css-properties to ^0.33.0Updates
postcss
from 8.4.38 to 8.4.39Release notes
Sourced from postcss's releases.
Changelog
Sourced from postcss's changelog.
Commits
e0efb16
Release 8.4.39 version48304c5
Update dependencies155ac57
Merge pull request #1947 from romainmenke/fix-css-syntax-error-type--reliable...1b9b466
fix CssSyntaxError type declaration3f4d96e
Update dependenciesb952be7
Update CI actionsb512b29
Typof9a9868
Move to pnpm 9 and Node.js 2279052c2
Merge pull request #1940 from Xvezda/patch-10eedad4
Update changed urlsUpdates
svelte-check
from 3.8.1 to 3.8.4Release notes
Sourced from svelte-check's releases.
Commits
00212c4
fix: always set bindings/exports in Svelte 5 (#2423)573d59c
fix: detect root snippets correctlye94b82e
fix: handle issues with svelte file watching (#2421)5312279
fix: prevent false positive store declarations (#2422)6e64abd
fix: more robust start tag detection1d5f3cd
chore: upgrade to TS 5.5 (#2415)7008652
fix: handle optional args in snippets (#2414)dbfb47a
fix: watch svelte files and project files outside workspace (#2299)bdfa37a
fix: snippets with TS incorrect transformation (#2412)be5e535
chore: remove import-fresh dependency (#2413)Updates
vite
from 5.3.1 to 5.3.2Changelog
Sourced from vite's changelog.
Commits
3af02bd
release: v5.3.224c799b
fix(typescript): correctly expand ${configDir} in tsconfig.json (#17576)a33a97f
chore(deps): update all non-major dependencies (#17553)2d6672f
chore(deps): update es-module-lexer to 1.5.4 (#17555)7c06ef0
refactor(optimizer): use early continues (#17551)a8e2f6f
fix(client): uniform variablelocation
(#17528)6c10662
chore(deps): update dependency eslint to v9 (#16661)bf123f2
fix(deps): update all non-major dependencies (#17494)ec16a5e
chore: fix some comments (#17495)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