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
Valibot minimum dependency is now >=0.33.0 to fix a type issue. Please follow the migration guide to update your Valibot schemas if your version is below v0.31.0.
Valibot minimum dependency is now >=0.33.0 to fix a type issue. Please follow the migration guide to update your Valibot schemas if your version is below v0.31.0.
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 patch-minor group with 5 updates in the / directory:
2.43.5
2.44.0
1.44.1
1.45.0
7.13.1
7.14.1
3.8.1
3.8.3
2.15.1
2.15.2
Updates
@supabase/supabase-js
from 2.43.5 to 2.44.0Release notes
Sourced from
@supabase/supabase-js
's releases.Commits
37dc1ae
feat: Bump realtime-js 2.10.1 (#1231)450aa49
fix: postgrest-js 1.15.6Updates
@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
@typescript-eslint/eslint-plugin
from 7.13.1 to 7.14.1Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.Commits
b4fe94f
chore(release): publish 7.14.1f29150f
fix(eslint-plugin): [prefer-nullish-coalescing] ensure ternary fix does not r...9b7731d
fix(eslint-plugin): [prefer-nullish-coalescing] treat enums and literals as t...dfc4469
chore(release): publish 7.14.0635133a
docs: split troubleshooting into granular sections (#9024)c322099
fix(eslint-plugin): [no-invalid-this] support AccessorProperty (#9411)23e6468
fix(eslint-plugin): [prefer-nullish-coalescing] handle intersected primitive ...5c4a5de
feat(ast-spec): tighter types and documentation for declaration/* (#9211)e47123d
fix(eslint-plugin): [no-extraneous-class] handle abstract members (#9367)dc18229
feat: support TypeScript 5.5 (#9397)Updates
svelte-check
from 3.8.1 to 3.8.3Release notes
Sourced from svelte-check's releases.
Commits
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)397139b
chore: move fast-glob to devDependencies (#2400)Updates
sveltekit-superforms
from 2.15.1 to 2.15.2Release notes
Sourced from sveltekit-superforms's releases.
Changelog
Sourced from sveltekit-superforms's changelog.
Commits
a5ed133
Linter fixes2644d0a
2.15.23e7dcb4
Changelog for 2.15.27ede49f
Package updates556540d
Merge branch 'main' of github.com:ciscoheat/sveltekit-superforms505a7e6
Update valibot to resolve type incompatibility (#445)27df7f3
2.15.1f902cad
Arktype code wasn't excluded from bundle due to not being dynamically loaded.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