AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

senior-qa

Use for generating or improving tests in React or Next.js apps (Jest, React Testing Library, MSW, Playwright, coverage gaps). Generates suites with test_suite_generator.py, scaffolds E2E with e2e_test_scaffolder.py and reads coverage with coverage_analyzer.py.

Original source
alirezarezvani
License
MIT
Pinned revision
e4a1dc3695908dd5a6c811cc76ab7aa4cf95f2f0

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read alirezarezvani--senior-qa at revision e4a1dc3695908dd5a6c811cc76ab7aa4cf95f2f0, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 5

references/test_automation_patterns.md · 24000

ine snapshots for small outputs** - Easier to review in code 3. Review snapshot changes carefully - Don't blindly update 4. Avoid snapshots for dynamic content - Filter out timestamps, IDs 5. Combine with other assertions - Snapshots complement, not replace

// Filtering dynamic content from snapshots
it('renders user card', () => {
  const { container } = render(<UserCard user={mockUser} />);

  // Remove dynamic elements before snapshot
  const card = container.firstChild;
  const timestamp = card.querySelector('.timestamp');
  timestamp?.remove();

  expect(card).toMatchSnapshot();
});

Summary

  1. Use Page Objects for complex, reusable page interactions
  2. Build factories for consistent test data creation
  3. Leverage MSW for realistic API mocking
  4. Create custom render utilities for provider wrapping
  5. Master async patterns to avoid flaky tests
  6. Use snapshots wisely for stable, static content only