Description
Last Good Version
1.44.0
First Bad Version
1.45.0
Steps to reproduce
-
Create branch "A" where code references Microsoft.Playwright.NUnit 1.44.0
-
Run "playwright.ps1 install" - works as expected
-
Run tests - works as expected
-
Create branch "B" where code references Microsoft.Playwright.NUnit 1.45.0
-
Run "playwright.ps1 install" - works as expected
-
Run tests - works as expected
-
Change back to branch "A"
-
Run "playwright.ps1 install" - fails with error below
-
Run tests - fails with error below
ERROR:
node:internal/modules/cjs/loader:1148
throw err;
^
Error: Cannot find module './clock'
Expected behavior
"playwright.ps1 install" should not fail. If the versions are incompatible/different, then playwright.ps1 should install the version it expects.
Actual behavior
"playwright.ps1 install" fails
node:internal/modules/cjs/loader:1148
throw err;
^
Error: Cannot find module './clock'
Additional context
Cleaning the solution after changing branches is a valid workaround, but wasn't necessary before.
Environment
- Operating System: Microsoft Windows 10 Pro
- CPU: Intel64
- .NET Version (TFM): [net8.0]