{"id":51646482,"url":"https://github.com/zerodrop-dev/zerodrop-playwright-example","last_synced_at":"2026-07-13T23:02:41.390Z","repository":{"id":363921913,"uuid":"1265554873","full_name":"zerodrop-dev/zerodrop-playwright-example","owner":"zerodrop-dev","description":"E2E email verification testing with Playwright and ZeroDrop — no Docker, no SMTP","archived":false,"fork":false,"pushed_at":"2026-06-10T23:44:11.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-11T00:14:59.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zerodrop-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-10T22:04:27.000Z","updated_at":"2026-06-10T23:44:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zerodrop-dev/zerodrop-playwright-example","commit_stats":null,"previous_names":["zerodrop-dev/zerodrop-playwright-example"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zerodrop-dev/zerodrop-playwright-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerodrop-dev%2Fzerodrop-playwright-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerodrop-dev%2Fzerodrop-playwright-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerodrop-dev%2Fzerodrop-playwright-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerodrop-dev%2Fzerodrop-playwright-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zerodrop-dev","download_url":"https://codeload.github.com/zerodrop-dev/zerodrop-playwright-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerodrop-dev%2Fzerodrop-playwright-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35439213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-13T02:00:06.543Z","response_time":119,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-13T23:02:40.880Z","updated_at":"2026-07-13T23:02:41.385Z","avatar_url":"https://github.com/zerodrop-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zerodrop-playwright-example\n\n\u003e E2E email verification testing with Playwright and ZeroDrop\n\n[![CI](https://github.com/zerodrop-dev/zerodrop-playwright-example/actions/workflows/ci.yml/badge.svg)](https://github.com/zerodrop-dev/zerodrop-playwright-example/actions/workflows/ci.yml)\n\nNo Docker. No SMTP. No MailHog. Just `npm install` and a real inbox.\n\n---\n\n## What this demonstrates\n\nTesting auth flows that send emails (verification links, password resets, magic links) is painful. Most teams either:\n\n- Mock the email sending layer (doesn't test real delivery)\n- Run MailHog in Docker (adds CI overhead and maintenance)\n- Skip the test entirely\n\nThis repo shows a third option: catch real emails in CI using [ZeroDrop](https://zerodrop.dev) — a disposable inbox that works over HTTP with no infrastructure.\n\n---\n\n## How it works\n\n```yaml\n# .github/workflows/ci.yml\n\n- name: Generate ZeroDrop test inbox\n  id: inbox\n  uses: zerodrop-dev/create-inbox@v1\n\n- name: Run Playwright tests\n  run: npx playwright test\n  env:\n    TEST_INBOX: ${{ steps.inbox.outputs.inbox }}\n```\n\n```typescript\n// tests/auth.spec.ts\n\nimport { ZeroDrop } from 'zerodrop-client';\n\nconst mail = new ZeroDrop();\nconst inbox = process.env.TEST_INBOX ?? mail.generateInbox();\n\n// Sign up with the disposable inbox\nawait page.fill('[data-testid=\"email\"]', inbox);\nawait page.click('[data-testid=\"submit\"]');\n\n// Wait for the real verification email\nconst email = await mail.waitForLatest(inbox, { timeout: 15000 });\nconst link = email.body.match(/https?:\\/\\/\\S+verify\\S+/)?.[0];\n\n// Click it\nawait page.goto(link);\n```\n\nNo mocking. No Docker container. The email arrives in under 3 seconds.\n\n---\n\n## Running locally\n\n```bash\nnpm install\nnpx playwright install chromium\nnpm run dev\n```\n\nIn a second terminal:\n\n```bash\nnpx playwright test\n```\n\nA fresh inbox is generated automatically when `TEST_INBOX` is not set.\n\n---\n\n## Stack\n\n- [Next.js](https://nextjs.org) — demo app\n- [Playwright](https://playwright.dev) — E2E tests\n- [zerodrop-client](https://npmjs.com/package/zerodrop-client) — disposable inbox SDK\n- [zerodrop-dev/create-inbox](https://github.com/marketplace/actions/zerodrop-create-inbox) — GitHub Action\n\n---\n\n## Free tier\n\nZeroDrop's free tier uses a shared domain (`zerodrop-sandbox.online`) with AI spam filtering and 30-minute TTL. No signup required.\n\nFor custom domains, team seats, and API keys: [zerodrop.dev](https://zerodrop.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerodrop-dev%2Fzerodrop-playwright-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerodrop-dev%2Fzerodrop-playwright-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerodrop-dev%2Fzerodrop-playwright-example/lists"}