Add data-testid to Play and Stop buttons for E2E testing
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
@raclim assign me
Hi! I’d like to work on this issue. I’m currently exploring E2E testing improvements for the editor and this seems like a great starting point.
Hi, thanks for this idea, sorry it took a while to get to! We're reviewed it with @clairep94 and in the current state of the E2E testing, this is not necessary. So I'll close this one.