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
When using a custom runtimeModule, the plugin will not try to pre-optimize react/compiler-runtime dependency.
Reminder: Vite expect code outside of node_modules to be ESM, so you will need to update the gist with import React from 'react'.
v4.3.0
Fix support for React compiler
Don't set retainLines: true when the React compiler is used. This creates whitespace issues and the compiler is modifying the JSX too much to get correct line numbers after that. If you want to use the React compiler and get back correct line numbers for tools like vite-plugin-react-click-to-component to work, you should update your config to something like:
When using a custom runtimeModule, the plugin will not try to pre-optimize react/compiler-runtime dependency.
Reminder: Vite expect code outside of node_modules to be ESM, so you will need to update the gist with import React from 'react'.
4.3.0 (2024-05-22)
Fix support for React compiler
Don't set retainLines: true when the React compiler is used. This creates whitespace issues and the compiler is modifying the JSX too much to get correct line numbers after that. If you want to use the React compiler and get back correct line numbers for tools like vite-plugin-react-click-to-component to work, you should update your config to something like:
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 node-development-dependencies group with 10 updates in the /ui directory:
5.15.5
5.15.21
1.41.2
1.45.0
29.5.11
29.5.12
20.11.16
20.14.9
4.2.1
4.3.1
4.0.0
4.0.1
3.2.4
3.3.2
5.3.3
5.5.2
5.0.13
5.3.2
4.3.1
4.3.2
Updates
@mui/material
from 5.15.5 to 5.15.21Release notes
Sourced from
@mui/material
's releases.... (truncated)
Changelog
Sourced from
@mui/material
's changelog.... (truncated)
Commits
a306ce4
[release] v5.15.21 (#42745)9f75542
[material-ui][Autocomplete] Fix renderOption props type (@DiegoAndai
) (#42709)c0b1cf0
[material-ui][Stepper] Generate class fornonLinear
prop (@alexismo
) (#42677)f20fa0b
v5.15.20 (#42617)177d8e9
[material-ui][Tab] Fix applyingiconWrapper
styles from theme and update it...7c2235e
[material-ui][Autocomplete] Shouldn't resize when hovering (@ZeeshanTamboli
) ...6460b35
[docs] Update twitter.com to x.com4a1101b
[release] v5.15.19 (#42441)3a72d07
[material-ui][responsiveFontSizes] Handled undefined variants (@brijeshb42
) (...4999882
[material-ui][Slider] Fix wrong CSS value (@mnajdova
) (#42373)Updates
@playwright/test
from 1.41.2 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
@types/jest
from 29.5.11 to 29.5.12Commits
Updates
@types/node
from 20.11.16 to 20.14.9Commits
Updates
@vitejs/plugin-react
from 4.2.1 to 4.3.1Release notes
Sourced from
@vitejs/plugin-react
's releases.Changelog
Sourced from
@vitejs/plugin-react
's changelog.Commits
1609186
release: plugin-react@4.3.1ea647d1
fix: handle using compiler with React 18 (#330)7e7322a
release: plugin-react@4.3.04b4a95c
fix: don't use retainLines with react compiler (#319)2b7f2ae
fix: support HMR for class components (#320)302a323
docs: add minimum react version (#321)9ebfe68
chore: bump deps (#318)Updates
ip-cidr
from 4.0.0 to 4.0.1Commits
Updates
prettier
from 3.2.4 to 3.3.2Release notes
Sourced from prettier's releases.
Changelog
Sourced from prettier's changelog.
... (truncated)
Commits
1596a60
Release 3.3.2aebcee5
chore(deps): update dependency esbuild to v0.21.5 (#16379)57aa928
chore(deps): update dependency c8 to v10 (#16380)c3d0b7f
chore(deps): update typescript-eslint to v7.13.0 (#16376)27c35db
chore(deps): update dependency codemirror-graphql to v2.0.12 (#16369)6de3258
chore(deps): update dependency jest to v30.0.0-alpha.5 (#16371)b5f983d
Upgrade yarn to v4.3.0 (#16377)d6f37c4
chore(deps): update dependency browserslist to v4.23.1 (#16368)5055b7d
chore(deps): update dependency execa to v9.2.0 (#16372)f4608cc
chore(deps): update dependency cspell to v8.8.4 (#16370)Updates
typescript
from 5.3.3 to 5.5.2Release notes
Sourced from typescript's releases.
... (truncated)
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 (#...Updates
vite
from 5.0.13 to 5.3.2Release notes
Sourced from vite's releases.
Changelog
Sourced from vite's changelog.
... (truncated)
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)c608e6a
release: v5.3.1Updates
vite-tsconfig-paths
from 4.3.1 to 4.3.2Commits
c02e4a2
4.3.2d246e8b
fix: upgrade tsconfck to fix bug that could cause a deadlock (#139)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