-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Recording videos and images for documentation #1812
base: 6.0
Are you sure you want to change the base?
Conversation
- Initialize and install environment - Run servers
I've pushed this as far as I can, the sample test failed, and I am stuck. I could use an assist to push this forward. See the docs in this PR for details. I'm also not convinced that Cypress Recorder is the best way forward to create tests, after seeing how slick Playwright is. |
.PHONY: recording-init ## Initializes the image and video recording environment | ||
recording-init: | ||
mkdir "$(RECORDINGS)" && cd "$(RECORDINGS)" && pipx run cookieplone --no-input project | ||
cd "$(RECORDINGS)/project-title" && make install |
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.
Oh, clever way to get an up-to-date project ready for recording!
Click {guilabel}`Start E2E Testing in Chrome`. | ||
|
||
And that's pretty much as far as I got. | ||
Even though I created a page, `/document`, and ran the sample test, it failed. |
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.
You don't have to create a page, the example test does that. But the example test was broken. 😞 Fixed in plone/cookieplone-templates#138
I don't have experience with either one (only writing Cypress tests in code). I think you can pick whichever one looks more promising. You can still use the same approach for installing a project and starting the backend and frontend. The main differences between the "acceptance" commands for starting Plone and the normal ones are:
|
That's what the Cypress infrastructure in Volto is doing here: |
Documentation includes:
See #1611 and plone/Products.CMFPlone#3987
📚 Documentation preview 📚: https://plone6--1812.org.readthedocs.build/