Comments (5)
This is expected, since its not relevant to the user which create-playwright version they are using while @playwright/test is very important on the other hand.
from playwright.
its not relevant to the user which create-playwright version they are using
To me as a user, I would argue it's very important to know what version of create-playwright
I'm using, especially if A) I'm waiting for a change to be published, and/or B) want to know if my package manager has the latest version of the tool (trying to find the version of a create-x
tool in the package manager files is not straightforward for users, so printing it is very helpful).
from playwright.
We expect users to always run the latest version of create-playwright, hence we have the @latest
everywhere. Yarn does it do automatically. For pnpm, it looks like they cache very aggressively, even when adding @latest
. So if there is a flag we can add on pnpm side, happy to add it. (we are following what create-react-app does). Other than that, we try to avoid adding additional output to create-playwright, since it already prints a lot of information to the user. Thanks for your understanding.
from playwright.
we try to avoid adding additional output to create-playwright
Understood, I would also tend towards being very careful with adding lines here.
I do think that 1 extra line with this valuable information is worth it, but if create-playwright
should always be latest versions and old versions are deprecated (as I think I'm understanding that you are suggesting), then it should be less of an issue.
We expect users to always run the latest version of create-playwright
I'm understanding that create-playwright
should be always the latest version and that old versions are deprecated.
This seems to fit with the philosophy from the browser ecosystem of "evergreen" - where browsers include mechanisms to automate being on the latest version.
In this case, I could see an "evergreen" alternative to printing the create-playwright
version to be:
- Automating publishing of the
create-playwright
main
branch to avoid feature which are merged but not yet published - Some flag (if it exists) to enable pnpm to always get the latest version (I thought that
@latest
already achieved that, but maybe there is some caching I'm not aware of)- Alternative: Add a check in
create-playwright
to check for the latest version and refuse to run with older versions
- Alternative: Add a check in
@mxschmitt if you agree with 1 above, I can create a new issue for this.
from playwright.
Automating publishing of the create-playwright main branch to avoid microsoft/create-playwright#116 (comment)
We prefer to control the release process so automating the publishing is not going to happen.
Some flag (if it exists) to enable pnpm to always get the latest version (I thought that @latest already achieved that, but maybe there is some caching I'm not aware of)
That would be great to fix! Let's file an issue in the pnpm repository?
Alternative: Add a check in create-playwright to check for the latest version and refuse to run with older versions
We prefer to fix pnpm since NPM and Yarn is installing the latest version (without caching).
There seems to be no action item for Playwright, so closing this.
from playwright.
Related Issues (20)
- Delete please
- [Feature]: chrome://flags or IPV6/IPV4 control HOT 1
- [Feature]: Add 'retryDelayInMs' Property to API Requests HOT 1
- [Question] Why upload a file larger then 50Mb is forbidden when upgrading to v1.40.0, I was using launchPersistentContext(), with options: channel: 'chrome'. HOT 1
- [Bug]: Unable to launch Chrome and Firefox in Incognito mode HOT 1
- [Bug]: UI client uses wrong path separator
- [Bug]: Chromium/Chrome Managed Policies Not Supported HOT 1
- [Feature]: HTTP status code constants
- [Bug]: Memory and node threads continue to increase after the test finished HOT 9
- [Bug]: Playwright E2E Tests Passing Locally but Failing in GitHub Actions with Next.js 14 App Router, TypeScript HOT 2
- Locate and extract value of an element based on class name when the class has multiple parent div/class HOT 1
- [Bug]: UI doesn't call setup and passes incorrect outputDir HOT 3
- [Please read the message below] Can we run the playwright test and see the test report in docker container. ( like dagger) HOT 2
- [Bug]: Playwright UI crashes with "Out of Memory" HOT 5
- [Bug] [VSCODE extension]: Multi-root workspaces with playwright confuses the extension, both test suites never show up HOT 1
- [Regression]: Pressing Tab in Firefox does not trigger `blur` event HOT 1
- [Bug]: unexpected expect.extend behaviour HOT 4
- [Bug]: attachments are wrong/confusing when `expectScreenshot` fails on time limit HOT 2
- [Bug]: Unable to launch chromium browser with ver 1.46.1 in windows. HOT 9
- [Bug]: VSCode extension "Play" button won't render for wrapper utilities HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright.