[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K09CCHTB5TP86MGBENS4C1":3,"skill-same:01M6K09CCHTB5TP86MGBENS4C1":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":13,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M6K09CCHTB5TP86MGBENS4C1","e2e-studio-tests",null,"Run e2e tests in the Studio app. Use when asked to run e2e tests, run studio tests, playwright tests, or test the feature.","sigitpoerwo\u002Frepoworkspace_zahra","sigitpoerwo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F260207224?v=4","01M6K000PB6NA0N6SQ7VFMEAFZ","01M6K000V4N0CEHNPPQA9TNQNX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F03-BELUM-DICOBA\u002Fdari-clawhub\u002Fe2e-studio-tests\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"e2e","tests","studio","e2e studio tests","playwright","test","run e2e tests","e2e tests","run","run e2e","use","feature","app","2026-11-10 10:12:30",false,"---\nname: e2e-studio-tests\ndescription: Run e2e tests in the Studio app. Use when asked to run e2e tests, run studio tests, playwright tests, or test the feature.\n---\n\n# E2E Studio Tests\n\nRun Playwright end-to-end tests for the Studio application.\n\n## Running Tests\n\nTests must be run from the `e2e\u002Fstudio` directory:\n\n```bash\ncd e2e\u002Fstudio && pnpm run e2e\n```\n\n### Run specific file\n\n```bash\ncd e2e\u002Fstudio && pnpm run e2e -- features\u002Fcron-jobs.spec.ts\n```\n\n### Run with grep filter\n\n```bash\ncd e2e\u002Fstudio && pnpm run e2e -- --grep \"test name pattern\"\n```\n\n### UI mode for debugging\n\n```bash\ncd e2e\u002Fstudio && pnpm run e2e -- --ui\n```\n\n## Environment Setup\n\n- Tests auto-start Supabase local containers via web server config\n- Self-hosted mode (`IS_PLATFORM=false`) runs tests in parallel (3 workers)\n- No manual setup needed for self-hosted tests\n\n## Test File Structure\n\n- Tests are in `e2e\u002Fstudio\u002Ffeatures\u002F*.spec.ts`\n- Use custom test utility: `import { test } from '..\u002Futils\u002Ftest.js'`\n- Test fixtures provide `page`, `ref`, and other helpers\n\n## Common Patterns\n\nWait for elements with generous timeouts:\n\n```typescript\nawait expect(locator).toBeVisible({ timeout: 30000 })\n```\n\nAdd messages to expects for debugging:\n\n```typescript\nawait expect(locator).toBeVisible({ timeout: 30000 }, 'Element should be visible after page load')\n```\n\nUse serial mode for tests sharing database state:\n\n```typescript\ntest.describe.configure({ mode: 'serial' })\n```\n\n## Writing Robust Selectors\n\n### Selector priority (best to worst)\n\n1. **`getByRole` with accessible name** - Most robust, tests accessibility\n   ```typescript\n   page.getByRole('button', { name: 'Save' })\n   page.getByRole('button', { name: 'Configure API privileges' })\n   ```\n\n2. **`getByTestId`** - Stable, explicit test hooks\n   ```typescript\n   page.getByTestId('table-editor-side-panel')\n   ```\n\n3. **`getByText` with exact match** - Good for unique text\n   ```typescript\n   page.getByText('Data API Access', { exact: true })\n   ```\n\n4. **`locator` with CSS** - Use sparingly, more fragile\n   ```typescript\n   page.locator('[data-state=\"open\"]')\n   ```\n\n### Patterns to avoid\n\n- **XPath selectors** - Fragile to DOM changes\n  ```typescript\n  \u002F\u002F BAD\n  locator('xpath=ancestor::div[contains(@class, \"space-y\")]')\n  ```\n\n- **Parent traversal with `locator('..')`** - Breaks when structure changes\n  ```typescript\n  \u002F\u002F BAD\n  element.locator('..').getByRole('button')\n  ```\n\n- **Broad `filter({ hasText })` on generic elements** - May match multiple elements\n  ```typescript\n  \u002F\u002F BAD - popover may have more than one combobox\n  \u002F\u002F Could consider scoping down the container or filtering the combobox more specifically\n  popover.getByRole('combobox')\n  ```\n\n### Add accessible labels to components\n\nWhen a component lacks a good accessible name, add one in the source code:\n\n```tsx\n\u002F\u002F In the React component\n\u003CButton aria-label=\"Configure API privileges\">\n  \u003CSettings \u002F>\n\u003C\u002FButton>\n```\n\nThen use it in tests:\n```typescript\npage.getByRole('button', { name: 'Configure API privileges' })\n```\n\n### Narrowing search scope\n\nScope selectors to specific containers to avoid matching wrong elements:\n\n```typescript\n\u002F\u002F Good - scoped to side panel\nconst sidePanel = page.getByTestId('table-editor-side-panel')\nconst toggle = sidePanel.getByRole('switch')\n\n\u002F\u002F Good - find unique element, then scope from there\nconst popover = page.locator('[data-radix-popper-content-wrapper]')\nconst roleSection = popover.getByText('Anonymous (anon)', { exact: true })\n```\n\n## Avoiding `waitForTimeout`\n\nNever use `waitForTimeout` - always wait for something specific:\n\n```typescript\n\u002F\u002F BAD\nawait page.waitForTimeout(1000)\n\n\u002F\u002F GOOD - wait for UI element\nawait expect(page.getByText('Success')).toBeVisible()\n\n\u002F\u002F GOOD - wait for API response\nconst apiPromise = waitForApiResponse(page, 'pg-meta', ref, 'query?key=table-create')\nawait saveButton.click()\nawait apiPromise\n\n\u002F\u002F GOOD - wait for toast indicating operation complete\nawait expect(page.getByText('Table created successfully')).toBeVisible({ timeout: 15000 })\n```\n\n## Avoiding `force: true` on clicks\n\nInstead of forcing clicks on hidden elements, make them visible first:\n\n```typescript\n\u002F\u002F BAD\nawait menuButton.click({ force: true })\n\n\u002F\u002F GOOD - hover to reveal, then click\nawait tableRow.hover()\nawait expect(menuButton).toBeVisible()\nawait menuButton.click()\n```\n\n## Debugging\n\n### View trace\n\n```bash\ncd e2e\u002Fstudio && pnpm exec playwright show-trace \u003Cpath-to-trace.zip>\n```\n\n### View HTML report\n\n```bash\ncd e2e\u002Fstudio && pnpm exec playwright show-report\n```\n\n### Error context\n\nError context files are saved in the `test-results\u002F` directory.\n\n### Playwright MCP tools\n\nUse Playwright MCP tools to inspect UI when debugging locally.\n\n## CI vs Local Development\n\nThe key difference is **cold start vs warm state**:\n\n### CI (cold start)\n\nTests run from a blank database slate. Each test run resets the database and starts fresh containers. Extensions like pg_cron are NOT enabled by default.\n\n### Local dev with `pnpm dev:studio-local`\n\nWhen debugging with a running dev server, the database may already have state from previous runs (extensions enabled, test data present).\n\n## Handling Cold Start Bugs\n\nTests that work locally but fail in CI often have assumptions about existing state.\n\n### Common issues\n\n1. Extension not enabled (must enable in test setup)\n2. Race conditions when parallel tests try to modify shared state (use `test.describe.configure({ mode: 'serial' })`)\n3. Locators matching wrong elements because the page structure differs when state isn't set up\n\n### Reproducing CI behavior locally\n\nThe test framework automatically resets the database when running `pnpm run e2e`. This matches CI behavior.\n\nIf using `pnpm dev:studio-local` for Playwright MCP debugging, remember the state differs from CI.\n\n## Debugging Workflow for CI Failures\n\n1. First, run the test locally with `pnpm run e2e -- features\u002F\u003Cfile>.spec.ts` (cold start)\n2. Check error context in `test-results\u002F` directory\n3. If you need to inspect UI state, start `pnpm dev:studio-local` and use Playwright MCP tools\n4. Remember: what you see in the dev server may have state that doesn't exist in CI\n","# E2E Studio Tests\n\nRun Playwright end-to-end tests for the Studio application.\n\n## Running Tests\n\nTests must be run from the `e2e\u002Fstudio` directory:\n\n```bash\ncd e2e\u002Fstudio && pnpm run e2e\n```\n\n### Run specific file\n\n```bash\ncd e2e\u002Fstudio && pnpm run e2e -- features\u002Fcron-jobs.spec.ts\n```\n\n### Run with grep filter\n\n```bash\ncd e2e\u002Fstudio && pnpm run e2e -- --grep \"test name pattern\"\n```\n\n### UI mode for debugging\n\n```bash\ncd e2e\u002Fstudio && pnpm run e2e -- --ui\n```\n\n## Environment Setup\n\n- Tests auto-start Supabase local containers via web server config\n- Self-hosted mode (`IS_PLATFORM=false`) runs tests in parallel (3 workers)\n- No manual setup needed for self-hosted tests\n\n## Test File Structure\n\n- Tests are in `e2e\u002Fstudio\u002Ffeatures\u002F*.spec.ts`\n- Use custom test utility: `import { test } from '..\u002Futils\u002Ftest.js'`\n- Test fixtures provide `page`, `ref`, and other helpers\n\n## Common Patterns\n\nWait for elements with generous timeouts:\n\n```typescript\nawait expect(locator).toBeVisible({ timeout: 30000 })\n```\n\nAdd messages to expects for debugging:\n\n```typescript\nawait expect(locator).toBeVisible({ timeout: 30000 }, 'Element should be visible after page load')\n```\n\nUse serial mode for tests sharing database state:\n\n```typescript\ntest.describe.configure({ mode: 'serial' })\n```\n\n## Writing Robust Selectors\n\n### Selector priority (best to worst)\n\n1. **`getByRole` with accessible name** - Most robust, tests accessibility\n   ```typescript\n   page.getByRole('button', { name: 'Save' })\n   page.getByRole('button', { name: 'Configure API privileges' })\n   ```\n\n2. **`getByTestId`** - Stable, explicit test hooks\n   ```typescript\n   page.getByTestId('table-editor-side-panel')\n   ```\n\n3. **`getByText` with exact match** - Good for unique text\n   ```typescript\n   page.getByText('Data API Access', { exact: true })\n   ```\n\n4. **`locator` with CSS** - Use sparingly, more fragile\n   ```typescript\n   page.locator('[data-state=\"open\"]')\n   ```\n\n### Patterns to avoid\n\n- **XPath selectors** - Fragile to DOM changes\n  ```typescript\n  \u002F\u002F BAD\n  locator('xpath=ancestor::div[contains(@class, \"space-y\")]')\n  ```\n\n- **Parent traversal with `locator('..')`** - Breaks when structure changes\n  ```typescript\n  \u002F\u002F BAD\n  element.locator('..').getByRole('button')\n  ```\n\n- **Broad `filter({ hasText })` on generic elements** - May match multiple elements\n  ```typescript\n  \u002F\u002F BAD - popover may have more than one combobox\n  \u002F\u002F Could consider scoping down the container or filtering the combobox more specifically\n  popover.getByRole('combobox')\n  ```\n\n### Add accessible labels to components\n\nWhen a component lacks a good accessible name, add one in the source code:\n\n```tsx\n\u002F\u002F In the React component\n\u003CButton aria-label=\"Configure API privileges\">\n  \u003CSettings \u002F>\n\u003C\u002FButton>\n```\n\nThen use it in tests:\n```typescript\npage.getByRole('button', { name: 'Configure API privileges' })\n```\n\n### Narrowing search scope\n\nScope selectors to specific containers to avoid matching wrong elements:\n\n```typescript\n\u002F\u002F Good - scoped to side panel\nconst sidePanel = page.getByTestId('table-editor-side-panel')\nconst toggle = sidePanel.getByRole('switch')\n\n\u002F\u002F Good - find unique element, then scope from there\nconst popover = page.locator('[data-radix-popper-content-wrapper]')\nconst roleSection = popover.getByText('Anonymous (anon)', { exact: true })\n```\n\n## Avoiding `waitForTimeout`\n\nNever use `waitForTimeout` - always wait for something specific:\n\n```typescript\n\u002F\u002F BAD\nawait page.waitForTimeout(1000)\n\n\u002F\u002F GOOD - wait for UI element\nawait expect(page.getByText('Success')).toBeVisible()\n\n\u002F\u002F GOOD - wait for API response\nconst apiPromise = waitForApiResponse(page, 'pg-meta', ref, 'query?key=table-create')\nawait saveButton.click()\nawait apiPromise\n\n\u002F\u002F GOOD - wait for toast indicating operation complete\nawait expect(page.getByText('Table created successfully')).toBeVisible({ timeout: 15000 })\n```\n\n## Avoiding `force: true` on clicks\n\nInstead of forcing clicks on hidden elements, make them visible first:\n\n```typescript\n\u002F\u002F BAD\nawait menuButton.click({ force: true })\n\n\u002F\u002F GOOD - hover to reveal, then click\nawait tableRow.hover()\nawait expect(menuButton).toBeVisible()\nawait menuButton.click()\n```\n\n## Debugging\n\n### View trace\n\n```bash\ncd e2e\u002Fstudio && pnpm exec playwright show-trace \u003Cpath-to-trace.zip>\n```\n\n### View HTML report\n\n```bash\ncd e2e\u002Fstudio && pnpm exec playwright show-report\n```\n\n### Error context\n\nError context files are saved in the `test-results\u002F` directory.\n\n### Playwright MCP tools\n\nUse Playwright MCP tools to inspect UI when debugging locally.\n\n## CI vs Local Development\n\nThe key difference is **cold start vs warm state**:\n\n### CI (cold start)\n\nTests run from a blank database slate. Each test run resets the database and starts fresh containers. Extensions like pg_cron are NOT enabled by default.\n\n### Local dev with `pnpm dev:studio-local`\n\nWhen debugging with a running dev server, the database may already have state from previous runs (extensions enabled, test data present).\n\n## Handling Cold Start Bugs\n\nTests that work locally but fail in CI often have assumptions about existing state.\n\n### Common issues\n\n1. Extension not enabled (must enable in test setup)\n2. Race conditions when parallel tests try to modify shared state (use `test.describe.configure({ mode: 'serial' })`)\n3. Locators matching wrong elements because the page structure differs when state isn't set up\n\n### Reproducing CI behavior locally\n\nThe test framework automatically resets the database when running `pnpm run e2e`. This matches CI behavior.\n\nIf using `pnpm dev:studio-local` for Playwright MCP debugging, remember the state differs from CI.\n\n## Debugging Workflow for CI Failures\n\n1. First, run the test locally with `pnpm run e2e -- features\u002F\u003Cfile>.spec.ts` (cold start)\n2. Check error context in `test-results\u002F` directory\n3. If you need to inspect UI state, start `pnpm dev:studio-local` and use Playwright MCP tools\n4. Remember: what you see in the dev server may have state that doesn't exist in CI\n",{"name":5,"description":7},"main","000d804ba753926ec0eca35be68bdb42da72c672","skills\u002F03-BELUM-DICOBA\u002Fdari-clawhub\u002Fe2e-studio-tests","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo","2026-04-05 09:27:05",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill e2e-studio-tests",{"tool":48,"command":49},"bunx","bunx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill e2e-studio-tests",{"tool":51,"command":52},"pnpm","pnpm dlx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill e2e-studio-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F03-BELUM-DICOBA\u002Fdari-clawhub\u002Fe2e-studio-tests\u002FSKILL.md",true,[],[57,83,107,124,130,136],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":31},"01M6K0FJ41XMDT72PK0E3ZJF9P","zahra-workspace-manager","Comprehensive workspace management skill for Zahra Maurita's development environment. Use when managing projects across 8 divisions (Web, App, AI Agent, Bot, Content, Marketing, Research, Business), organizing files, tracking progress, managing memory, or coordinating multi-domain work. Triggers on mentions of workspace organization, project management, division-specific tasks, memory updates, or cross-domain coordination.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002Fzahra-workspace-manager\u002FSKILL.md",[],[64,65,66,67,68,69,70,30,71,72,73,74,75,76,77,78,79,80,81,82],"workspace","workspace manager","manager","zahra workspace manager","work","updates","progress","project","across","multi-domain","files","command","coordination","projects","search","tasks","ai agent","memory","bot",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":31},"01M6K0FBZYXG5M8VBW5R6TPKEP","tinyfish","AI-powered web automation using TinyFish Web Agent. Use when you need to scrape data from websites, automate form filling, extract structured information, or perform any web-based task using natural language instructions. Works with any website including those with JavaScript, dynamic content, and bot protection.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Ftinyfish\u002FSKILL.md",[],[85,90,91,92,93,94,95,96,97,98,28,99,100,82,101,102,103,104,105,106],"with","natural language","web automation","form","information","scrape","task","language","protection","instructions","automate","you","website","web","javascript","automation","data",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":31},"01M6K0F57WDT62QNXTTC6YS34D","tinyfish-openclaw","TinyFish Web Agent integration for OpenClaw. Use this skill to scrape websites, automate web tasks, extract structured data, and perform browser automation using natural language. Works seamlessly with OpenClaw's MCP protocol.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Ftinyfish-openclaw\u002FSKILL.md",[],[85,114,115,105,116,117,118,103,100,119,90,91,28,95,106,120,121,122,123,79],"openclaw","tinyfish openclaw","structured data","browser automation","MCP","for","integration","mcp protocol","browser","protocol",{"skillNo":125,"name":126,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":31},"01M6K0E9ZWFTG44SK6G2ARS39Z","autoresearchclaw","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Fautoresearchclaw\u002FSKILL.md",[],[126],{"skillNo":131,"name":132,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":31},"01M6K0E6ZAEJFYDXM4GANCKZY0","researchclaw","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Fautoresearchclaw\u002F.claude\u002Fskills\u002Fresearchclaw\u002FSKILL.md",[],[132],{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":31},"01M6K0E1B6RZ8T2S7RMWQ6BVWW","academic-research-assistant","Research assistant for management & digital business academics - literature review, paper analysis, citation management, research methodology","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Facademic-research-assistant\u002FSKILL.md",[],[143,144,145,146,147,148,119,149,150,151,152,153,154,155,156,157,158,159],"research assistant","academic research assistant","Academic","assistant","research","paper analysis","literature","paper","Citation","research methodology","business","management","literature review","analysis","citation management","methodology","review"]