Skip to content

Add data-testid to Play and Stop buttons for E2E testing #3963

@Irfan762

Description

@Irfan762

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

Actual Behavior Play and Stop buttons in the toolbar lack data-testid attributes, making them difficult to target reliably in automated E2E tests. Tests currently must rely on CSS classes (fragile) or ARIA labels (not always present).

This makes it harder to write stable E2E tests for the core sketch execution workflow.

Expected Behavior

Expected behavior: Play and Stop buttons should have semantic test identifiers:

data-testid="play-button"
data-testid="stop-button"

Steps to reproduce

Inspect Play button in toolbar
No data-testid attribute present
E2E tests must use fragile selectors like CSS classes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardBugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions