e2e: add notebook release screenshots#13651
Conversation
- Positron notebook: kernel selector, assistant action bar, assistant panel - Jupyter notebook: kernel selector Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
E2E Tests 🚀 |
…nshot Air ships pre-installed in some builds but not all. Install it when the Install button is visible so the capture shows the Disable/Uninstall state every run. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Target the .kernel-action-view-item container so the codicon-notebook-kernel-select icon stays inside the red box, matching the existing published screenshot. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Render the 4 notebook screenshots at 960x640 and composite each capture onto a white canvas with a soft drop shadow to approximate the floating-window look of the legacy macOS-chrome screenshots. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Clip the screenshot to a 24px-radius rounded rect before drawing the drop shadow so the shadow traces the rounded silhouette. - Add overrideWorkspaceName helper to rewrite the title bar and top action bar folder picker, mapping qa-example-content -> positron-demos-notebooks on the 4 notebook captures. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Extend overrideRuntimeLabel to also target the Positron notebook kernel status badge and the VS Code Jupyter kernel chip, so the captured label reads "Python <ver> (Venv: .venv)" instead of leaking the runner's Python manager (Pyenv, VirtualEnvWrapper, uv, etc.). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Apply the rounded-corner drop shadow inside captureFullWindow itself so all full-app screenshots get the floating-window treatment automatically (astropy, the four notebook captures, and any future full-window shots). Partial captures via capturePanel/captureRegion are unaffected. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Add extensions.installFromEditorIfNotInstalled() and use it from extension-publisher screenshot test. - Use notebooksPositron.expectAssistantButtonsVisible() and clickAskAssistantButton() instead of raw locators in the notebook assistant screenshot tests. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
I can either adjust the screenshot... or we can adjust the alt text. If you have a preference let me know! I use |
I don't have a strong preference. Let's update the alt text then if we know we want to use venv! |
juliasilge
left a comment
There was a problem hiding this comment.
These look good, and we'll need to make some minor adjustments to how we load these up into the context anyway so no big deal to change the alt text as well. I do think showing .venv is a nice, expected, non-controversial choice.
Summary
Adds 4 notebook release screenshot tests:
Also modified full screen captures to always add the shadow box effect.
QA Notes
See updated screenshot report here.