Setup Playwright UI monitoring to stabilise automated dependency updates#11
Draft
Copilot wants to merge 2 commits into
Draft
Setup Playwright UI monitoring to stabilise automated dependency updates#11Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
…abot Co-authored-by: artonge <6653109+artonge@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Setup Playwright testing for UI change monitoring
Setup Playwright UI monitoring to stabilise automated dependency updates
Feb 22, 2026
artonge
reviewed
Feb 22, 2026
Comment on lines
+15
to
+16
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 |
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 |
Owner
There was a problem hiding this comment.
Is it necessary to pin the node version?
Comment on lines
+5
to
+6
| await context.clearCookies(); | ||
| await context.addInitScript(() => localStorage.clear()); |
Owner
There was a problem hiding this comment.
Rename the file to better suite the content.
Owner
There was a problem hiding this comment.
Also test the content and snapshot after a city has been searched
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot was misconfigured (empty
package-ecosystem) and there were no real Playwright tests — only a stale template test checking for a Vue scaffold element that doesn't exist in the app. This meant dependency updates had no UI safety net.Changes
Playwright tests (
e2e/vue.spec.ts)Replaced the broken placeholder with tests covering both routes:
toHaveScreenshot()visual regression tests with committed baselinesPlaywright config (
playwright.config.ts)updateSnapshots: 'missing'— auto-creates baselines on first run without failingsnapshotPathTemplate— snapshots stored alongside spec files for discoverabilityhtmlwithopen: 'never'to avoid spurious browser launches in CICI workflow (
.github/workflows/playwright.yml)New workflow triggered on push to
masterand all PRs (including Dependabot). Builds withvite preview, runs Chromium, uploads the HTML report as an artifact.Dependabot (
.github/dependabot.yml)Fixed invalid
package-ecosystem: ""→"npm", interval set toweekly.With this in place, every Dependabot PR is gated by the Playwright suite: structural failures surface broken DOM contracts; screenshot diffs catch visual regressions.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.