Skip to content

Anki Playwright Agents

Master Anki Playwright Agents with 293 free flashcards. Study using spaced repetition and focus mode for effective learning in Technology.

🎓 293 cards ⏱️ ~147 min Advanced
Study Full Deck →
Share: 𝕏 Twitter LinkedIn WhatsApp

🎯 What You'll Learn

Preview Questions

12 shown

Playwright (Node): minimal setup?

Show ▼

npm i -D @playwright/test
npx playwright install
npx playwright test

Where do Playwright tests live?

Show ▼

Common: ./tests or ./e2e (you choose). Configure testDir in playwright.config.ts so agents know where to add new tests.

Key playwright.config.ts settings?

Show ▼

use.baseURL, webServer (start app), projects (chromium/firefox/webkit), retries/workers, reporter (html + junit), trace/video/screenshot policies.

How do I auto-start my app for tests?

Show ▼

Use playwright.config.ts webServer: { command: "npm run dev", url: "http://127.0.0.1:3000", reuseExistingServer: !process.env.CI }.

Run one test or one spec?

Show ▼

npx playwright test tests/foo.spec.ts
npx playwright test -g "test name"

Fastest debugging loop?

Show ▼

PWDEBUG=1 npx playwright test -g "name" --headed
or npx playwright test --debug (inspector)

Best selector strategy?

Show ▼

Prefer getByRole/getByLabel/getByPlaceholder for resilient tests. Add data-testid only when semantics are missing or ambiguous.

When should I add data-testid?

Show ▼

When UI text is unstable (i18n), roles are missing, or multiple similar elements exist. Keep ids stable and semantic (e.g., save-button).

Reuse login across tests?

Show ▼

Create storageState once (globalSetup) and set test.use({ storageState: "storageState.json" }) to avoid logging in every test.

Make tests deterministic (data)?

Show ▼

Seed data via API/db fixtures, use unique test IDs per run, and clean up. Avoid depending on existing prod-like data.

Avoid flaky waits?

Show ▼

Use Playwright auto-wait + expect(locator).toBeVisible/toHaveText/toHaveURL. Avoid page.waitForTimeout except as last resort.

Visual regression assertion?

Show ▼

expect(page).toHaveScreenshot("home.png") or expect(locator).toHaveScreenshot("card.png")

🎓 Start studying Anki Playwright Agents

🎮 Study Modes Available

🔄

Flashcards

Flip to reveal

🧠

Focus Mode

Spaced repetition

Multiple Choice

Test your knowledge

⌨️

Type Answer

Active recall

📚

Learn Mode

Multi-round mastery

🎯

Match Game

Memory challenge

Related Topics in Technology

📖 Learning Resources