-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9.3.0 Release #4304
9.3.0 Release #4304
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/cypress-io/cypress-documentation/GAK8WA6nptVw3grFKi6L134obSuq |
This is a manual recreation of #4241 for 9.3.0 release
Add docs for .selectFile() and Cypress.Buffer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emilyrohrbough I didn't have time to fully review.
content/_changelogs/9.3.0.md
Outdated
**News:** | ||
|
||
- We've | ||
[written a blog post](https://cypress.io/blog/2022/01/18/uploading-files-with-selectfile/) | ||
about the new Cypress command, `cy.selectFile()` introduced in `9.3.0`. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put the blog post within the feature and remove this "news" section - this isn't conventional. It would be nice to have marketing's help on crafting how to word these in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jennifer-shehane Sounds good. I pulled this section from a different changelog
content/_changelogs/9.3.0.md
Outdated
- Added a new Cypress command, called `cy.selectFile()`, which provides the | ||
ability to submit a file to file input elements. This command can also | ||
simulate a user drag-dropping files over the document. The API is similar to | ||
`cypress-file-upload`, and we have provided a migration guide for previous | ||
users of that plugin. For full details, see | ||
[our blog post](https://cypress.io/blog/2022/01/18/uploading-files-with-selectfile/) | ||
and the | ||
[cy.selectFile() documentation](https://docs.cypress.io/api/commands/selectfile). | ||
Fixes [#19524](https://github.com/cypress-io/cypress/issues/19524) and | ||
[#170](https://github.com/cypress-io/cypress/issues/170). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's match the wording from the selectFile doc itself.
Commands that are chained (child commands) do not have cy.
prefixed.
Link to the migration guide where we mentioned the migration guide.
- Added a new Cypress command, called `cy.selectFile()`, which provides the | |
ability to submit a file to file input elements. This command can also | |
simulate a user drag-dropping files over the document. The API is similar to | |
`cypress-file-upload`, and we have provided a migration guide for previous | |
users of that plugin. For full details, see | |
[our blog post](https://cypress.io/blog/2022/01/18/uploading-files-with-selectfile/) | |
and the | |
[cy.selectFile() documentation](https://docs.cypress.io/api/commands/selectfile). | |
Fixes [#19524](https://github.com/cypress-io/cypress/issues/19524) and | |
[#170](https://github.com/cypress-io/cypress/issues/170). | |
- You can now selects a file or files in an HTML5 input element or simulates dragging a file | |
or files into the browser using `.selectFile()`. The API is similar to | |
`cypress-file-upload` and we have provided a migration guide for previous | |
users of that plugin. For full details, see | |
[our blog post](https://cypress.io/blog/2022/01/18/uploading-files-with-selectfile/) | |
and the | |
[.selectFile() documentation](https://docs.cypress.io/api/commands/selectfile). | |
Fixes [#19524](https://github.com/cypress-io/cypress/issues/19524) and | |
[#170](https://github.com/cypress-io/cypress/issues/170). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also these docs links need to be updated to internal links.
content/_changelogs/9.3.0.md
Outdated
[cy.selectFile() documentation](https://docs.cypress.io/api/commands/selectfile). | ||
Fixes [#19524](https://github.com/cypress-io/cypress/issues/19524) and | ||
[#170](https://github.com/cypress-io/cypress/issues/170). | ||
- Exposed the `Buffer` polyfill, as `Cypress.Buffer`, to enable working with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to the new Cypress.Buffer doc here.
content/_changelogs/9.3.0.md
Outdated
- Added a new Cypress command, called `cy.selectFile()`, which provides the | ||
ability to submit a file to file input elements. This command can also | ||
simulate a user drag-dropping files over the document. The API is similar to | ||
`cypress-file-upload`, and we have provided a migration guide for previous | ||
users of that plugin. For full details, see | ||
[our blog post](https://cypress.io/blog/2022/01/18/uploading-files-with-selectfile/) | ||
and the | ||
[cy.selectFile() documentation](https://docs.cypress.io/api/commands/selectfile). | ||
Fixes [#19524](https://github.com/cypress-io/cypress/issues/19524) and | ||
[#170](https://github.com/cypress-io/cypress/issues/170). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also these docs links need to be updated to internal links.
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
[@abramenal](https://github.com/abramenal) and contributors to the | ||
[cypress-file-upload](https://github.com/abramenal/cypress-file-upload#contributors) | ||
repository. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cowboy / @BlueWinds Was there intentions of linking to the cypress-file-uploaded
migration guide here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't planning on it. IMO the docs are a bit more 'permanent', while the migration guide is intended to fall off in visibility (get buried as we release more versions).
I'm not against adding a link if people feel it would be helpful, but not sure it's necessary here (since there are other links to it scattered around).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have to look and see. It shouldn't hold up the release, however. We can always add it afterwards.
- Fixed an issue where the `--spec` CLI parameter was not working properly when | ||
passing multiple glob patterns that are separated by commas. Fixes | ||
[#16102](https://github.com/cypress-io/cypress/issues/16102). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cypress-io/cypress#19559 was missing a release
- CYPRESS_VERIFY_TIMEOUT can also be set in package.json and .npmrc. Fixes [#19559](https://github.com/cypress-io/cypress/issues/19559). | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated: d33b75a
(#4304)
Co-authored-by: Paul Jaffre <jaffrepaul@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor nit, other than that LGTM
Co-authored-by: Ben Alman <cowboy@rj3.net>
cy.selectFile docs #4241