e2e-testing

Prescribe Playwright and pytest conventions for end-to-end tests.

515|208|Updated Jul 6, 2015
One-click install
npx skills add https://github.com/Opentrons/opentrons --skill e2e-testing-opentrons
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: e2e-testing
Source: https://github.com/Opentrons/opentrons/tree/main/.cursor/skills/e2e-testing
Command: npx skills add https://github.com/Opentrons/opentrons --skill e2e-testing-opentrons

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

End-to-end testing conventions for Protocol Designer and Labware Library using Playwright + pytest, providing a standardized framework for writing, running, and maintaining tests.

Core Features & Use Cases

  • Page Object Model guidelines and example structures to promote reuse and readability.
  • Test organization patterns for PD and LL UI flows, protocols, and labware UI interactions.
  • CI/CD readiness with markers, environment configurations, and reproducible local setups to ensure reliable test outcomes.

Quick Start

Install dependencies and run the Playwright-based E2E test suite using the project’s Makefile targets for PD and LL locally.

Frequently Asked Questions about e2e-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure end-to-end tests using Playwright and pytest?

Structure end-to-end tests using Playwright and pytest by adopting the Page Object Model pattern. This standardizes test organization for UI flows, promoting component reuse and readability across local and CI environments.

What is the best way to standardize E2E test environments for CI pipelines?

Standardize E2E test environments for CI pipelines by using pytest markers and environment configurations. This ensures reproducible local setups and reliable execution outcomes across automated integration workflows.

Can I use pytest markers to organize E2E test execution flows?

Yes, you can use pytest markers to organize E2E test execution flows. Markers help categorize tests for targeted execution during local development and CI quality gates, ensuring only relevant test suites run.

How do I maintain consistent E2E tests across local and CI environments?

Maintain consistent E2E tests across local and CI environments by enforcing required tooling conventions, type hints, and project structure. This reduces execution variability and ensures reliable test outcomes.

Does the Page Object Model work well with Playwright test automation?

The Page Object Model works well with Playwright test automation by encapsulating UI element interactions into reusable classes. This promotes readability and simplifies maintenance for complex UI flow validations.

Why do my Playwright E2E tests fail in CI but pass locally?

Playwright E2E tests may fail in CI but pass locally due to inconsistent environment setups or missing quality gates. Applying standardized environment configurations and project conventions ensures reproducible results.