Issue 1:
System info

Playwright Version: [v1.31.2]

Operating System: [Windows VM]

Browser: [ONLY in Chromium]

Other info: It used to work fine until updated to v1.31 and now even if I revert back to previous versions still getting the same error (the error only happens in the Windows VM , not in my local machine, but I do not have access to that VM Windows machine)

Error LOG

2023-03-07T09:27:22.6036536Z �[31m 1) [testing Login Setup] › tests\login-setup.ts:6:5 › Login Setup �[2m────────────────────────────────�[22m�[39m
2023-03-07T09:27:22.6037617Z
2023-03-07T09:27:22.6038162Z browserType.launch: Browser closed.
2023-03-07T09:27:22.6038793Z ==================== Browser output: ====================
2023-03-07T09:27:22.6044850Z <launching> C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.exe --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=C:\Users\SVC_TE~1\AppData\Local\Temp\playwright_chromiumdev_profile-uvQwhV --remote-debugging-pipe --no-startup-window
2023-03-07T09:27:22.6052457Z <launched> pid=9100
2023-03-07T09:27:22.6054202Z [pid=9100][err] [0307/092645.718:ERROR:main_dll_loader_win.cc(109)] Failed to load Chrome DLL from C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.dll: The specified procedure could not be found. (0x7F)
2023-03-07T09:27:22.6056487Z =========================== logs ===========================
2023-03-07T09:27:22.6062693Z <launching> C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.exe --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=C:\Users\SVC_TE~1\AppData\Local\Temp\playwright_chromiumdev_profile-uvQwhV --remote-debugging-pipe --no-startup-window
2023-03-07T09:27:22.6068578Z <launched> pid=9100
2023-03-07T09:27:22.6070213Z [pid=9100][err] [0307/092645.718:ERROR:main_dll_loader_win.cc(109)] Failed to load Chrome DLL from C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.dll: The specified procedure could not be found. (0x7F)
2023-03-07T09:27:22.6071990Z ============================================================

Test file

import { test as setup } from '@playwright/test';

setup('Login Setup', async ({ page }) => {
await this.page.goto('URL');
});

Steps

run: "npm set PLAYWRIGHT_BROWSERS_PATH=0&& playwright install"

runL "npm set PLAYWRIGHT_BROWSERS_PATH=0&& playwright test"

Expected

It used to work fine until updated to v1.31 and now even if I revert back to previous versions still getting the same error (the error only happens in the Windows VM , not in my local machine, but I do not have access to that VM Windows machine)

Actual

As you can see in the LOG error, the browser cannot even be executed now.

Issue 2:
System info

Playwright Version: v1.32.2

Operating System: Windows 11

Browser: All

Node.js 18.12.0

PowerShell 7.3.3

Source code

I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

https://github.com/tadashi-aikawa/nuxt2-vuetify2-playwright-sandbox.git

Steps

1. Clone the repository and run the application

git clone https://github.com/tadashi-aikawa/nuxt2-vuetify2-playwright-sandbox.git
cd nuxt2-vuetify2-playwright-sandbox
git checkout 413de5f02e7affb8f301396929ca383dc967696e
npm install
npm run dev

2. Open the playwright GUI mode in another shell process

cd nuxt2-vuetify2-playwright-sandbox
npx playwright test --ui

3. Run all tests

Expected

Success all tests.

Actual

Some tests fail as follows.

The terminal that runs "npm run dev" shows errors.

node:events:491
throw er; // Unhandled 'error' event
^

Error: EPERM: operation not permitted, stat 'C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\test-results\.playwright-artifacts-1\1a98587cb1640f43c20527b24baacb89.zip'
Emitted 'error' event on FSWatcher instance at:
at FSWatcher.emitWithAll (C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:540:8)
at awfEmit (C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:599:14)
at C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:714:43
at FSReqCallback.oncomplete (node:fs:207:21) {
errno: -4048,
code: 'EPERM',
syscall: 'stat',
path: 'C:\\Users\\syoum\\tmp\\nuxt2-vuetify2-playwright-sandbox\\test-results\\.playwright-artifacts-1\\1a98587cb1640f43c20527b24baacb89.zip'
}

Node.js v18.12.0

Remarks

Without UI mode, it is always a success (npx playwright test)

It occurs even if set 1 to workers

I confirmed that I could create C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\test-results\.playwright-artifacts-1\1a98587cb1640f43c20527b24baacb89.zip manually

It occurs even if I run them as an administrator

It occurs even if I select firefox or webkit instead of chromium

Please let me know if any information is missing.

Best regards.

P.S. The new feature, UI mode, is very awesome!! It looks like as a cool IDE to e2e test! 😄