Skip to content

feat: add Playwright smoke tests for test studio#813

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/add-playwright-smoke-test
Draft

feat: add Playwright smoke tests for test studio#813
Copilot wants to merge 2 commits into
mainfrom
copilot/add-playwright-smoke-test

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 9, 2026

  • Explore repository structure and sanity monorepo Playwright setup
  • Install Playwright as a dev dependency in the test-studio package
  • Create playwright.config.ts in dev/test-studio/e2e/
  • Create smoke test that validates studio loads and kitchen-sink workspace is accessible
  • Create GitHub Actions workflow for Playwright smoke tests on PRs
  • Fix webServer CWD — add cwd: '..' so pnpm sanity start runs from dev/test-studio/ instead of dev/test-studio/e2e/
  • Fix build step — change --filter=test-studio^... to --filter=test-studio... so the studio itself is also built for sanity start
  • Run validation checks

Add Playwright smoke tests that verify:
- Studio loads and shows workspace selector
- Kitchen-sink workspace loads successfully

Includes:
- playwright.config.ts with staging auth via localStorage
- globalSetup.ts to wait for dev server readiness
- GitHub Actions workflow running on PRs and main pushes
- Playwright browser caching for faster CI runs

Agent-Logs-Url: https://github.com/sanity-io/plugins/sessions/a4e0185a-97da-4d5f-9ebc-da3ec5d0bcee
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 9, 2026

⚠️ No Changeset found

Latest commit: f33933d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plugins-studio Ready Ready Preview, Comment Apr 9, 2026 3:14pm

Request Review

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 9, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedgithub/​actions/​upload-artifact@​ea165f8d65b6e75b540449e92b4886f43607fa029910010010070
Addedgithub/​actions/​cache@​0057852bfaa89a56745cba8c7296529d2fc398309810010010080
Addednpm/​@​playwright/​test@​1.59.110010010099100

View full report

- Add `cwd: '..'` to webServer so `sanity start` runs from the studio
  root instead of the e2e/ subdirectory
- Change build filter from `test-studio^...` to `test-studio...` so the
  studio itself is built (required for `sanity start`)

Agent-Logs-Url: https://github.com/sanity-io/plugins/sessions/84fa7c37-c520-4dc6-af75-6fe8b2e5d9d5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants