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
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 deps group with 9 updates:
1.9.1
1.11.0
0.81.0
0.83.0
1.44.1
1.45.0
1.6.3
1.10.0
1.6.3
1.10.0
9.5.0
9.6.0
2.39.0
2.41.0
1.6.3
1.10.0
5.4.5
5.5.2
Updates
@inlang/paraglide-js
from 1.9.1 to 1.11.0Commits
Updates
@melt-ui/svelte
from 0.81.0 to 0.83.0Release notes
Sourced from
@melt-ui/svelte
's releases.Changelog
Sourced from
@melt-ui/svelte
's changelog.Commits
b05bb73
Version Packages (#1243)d54e711
lintab699b1
Resolves #687 Add skip to content button (#1235)13275cf
feat: add rootMargin to TableOfContents builder (#1210)23129c1
Version Packages (#1240)e3f22a9
Merge branch 'develop' of https://github.com/melt-ui/melt-ui into develop0f5f620
lint764e752
fix(Calendar): sometimes first day of next month is missing (#1236)f75fe43
Merge branch 'develop' of https://github.com/melt-ui/melt-ui into developf8e5f06
chore: addprepare
script (#1219)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
@shikijs/transformers
from 1.6.3 to 1.10.0Release notes
Sourced from
@shikijs/transformers
's releases.... (truncated)
Commits
6e5f39f
chore: release v1.10.0603713d
chore: release v1.9.1dbc1fa1
feat: remove notation escape (#709)c2ba60a
chore: release v1.9.07cd9778
chore: release v1.8.084364ed
chore: release v1.7.0742bef1
chore: release v1.6.52469296
chore: release v1.6.4Updates
@shikijs/twoslash
from 1.6.3 to 1.10.0Release notes
Sourced from
@shikijs/twoslash
's releases.... (truncated)
Commits
6e5f39f
chore: release v1.10.0603713d
chore: release v1.9.173404aa
chore: update depsc2ba60a
chore: release v1.9.0faf3bd2
feat!: renamegetHighlighter
tocreateHighlighter
(#702)2468337
chore: update twoslash snap7cd9778
chore: release v1.8.08b5213b
chore: update deps84364ed
chore: release v1.7.0742bef1
chore: release v1.6.5Updates
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.39.0 to 2.41.0Release notes
Sourced from eslint-plugin-svelte's releases.
... (truncated)
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.03ba8d57
chore: release eslint-plugin-svelte (#793)Updates
shiki
from 1.6.3 to 1.10.0Release notes
Sourced from shiki's releases.
... (truncated)
Commits
6e5f39f
chore: release v1.10.002bf017
feat: update themes and grammarsabe639d
fix: exposecreateCssVariablesTheme
inshiki/core
to avoid side-effectsf2b3956
feat: exposegetLastGrammarState
shorthand8a8faf9
feat: introduceGrammarState
(#712)603713d
chore: release v1.9.173404aa
chore: update depsc2ba60a
chore: release v1.9.0faf3bd2
feat!: renamegetHighlighter
tocreateHighlighter
(#702)7cd9778
chore: release v1.8.0Updates
typescript
from 5.4.5 to 5.5.2Release notes
Sourced from typescript's releases.
Commits
ce2e60e
Update LKGf3b21a2
🤖 Pick PR #58931 (Defer creation of barebonesLibSourc...) into release-5.5 (#...7b1620b
🤖 Pick PR #58811 (fix(58801): "Move to file" on globa...) into release-5.5 (#...5367ae1
Bump version to 5.5.2 and LKG02132e5
🤖 Pick PR #58895 (Fix global when typescript.js loade...) into release-5.5 (#...45b1e3c
🤖 Pick PR #58872 (Fix declaration emit crash) into release-5.5 (#58874)17933ee
🤖 Pick PR #58810 (Fixed declaration emit issue relate...) into release-5.5 (#...552b07e
🤖 Pick PR #58786 (Fixed declaration emit crash relate...) into release-5.5 (#...39c9eeb
Pick #58857 to release-5.5 (#58858)2b0009c
🤖 Pick PR #58846 (Ensure the updates with crashes rev...) into release-5.5 (#...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