Skip to content

[E2E] Add Playwright coverage for workflow create/run/delete lifecycle#714

Merged
utksh1 merged 2 commits into
utksh1:mainfrom
Pcmhacker-piro:workflow-e2e-tests
Jun 9, 2026
Merged

[E2E] Add Playwright coverage for workflow create/run/delete lifecycle#714
utksh1 merged 2 commits into
utksh1:mainfrom
Pcmhacker-piro:workflow-e2e-tests

Conversation

@Pcmhacker-piro

Copy link
Copy Markdown
Contributor

✦ Description

Added comprehensive Playwright E2E tests covering the full workflow create/run/delete lifecycle. The test suite uses mocked API responses to ensure deterministic CI execution.

Changes Made

  • Created frontend/testing/e2e/workflow.spec.ts with 5 test scenarios:
    • Displays existing workflows from mocked API
    • Creates a new workflow via the CreateSheet form
    • Runs a workflow and verifies queued task IDs appear
    • Deletes a workflow and confirms grid updates to empty state
    • Full lifecycle: create → run → delete combined flow
  • Mocks all workflow API endpoints (GET, POST, DELETE, run)
  • Sets up API key in localStorage via beforeEach to bypass auth gate

Testing

cd frontend
npx playwright test testing/e2e/workflow.spec.ts

Fixes #563

⟡ Type of Change

  • Bug fix
  • New feature
  • Testing (E2E test coverage)

✦ Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • My changes generate no new warnings or errors
  • The scenario is deterministic enough for CI

…ecycle

- Add workflow.spec.ts with mocked API routes for GET/POST/DELETE /workflows
- Cover creation via CreateSheet, manual run with queued task display,
  and delete with grid removal confirmation
- Include full lifecycle scenario combining create, run, and delete
- Set up API key in localStorage before navigation to bypass auth gate

Fixes utksh1#563
@utksh1 utksh1 added level:intermediate 35 pts difficulty label for moderate contributor PRs type:testing Testing work category bonus label area:frontend Frontend React/UI work gssoc:approved Admin validation: approved for GSSoC scoring labels Jun 9, 2026

@utksh1 utksh1 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed. The E2E coverage is scoped to workflow lifecycle behavior and current checks are green.

@utksh1 utksh1 merged commit 1800d0b into utksh1:main Jun 9, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Frontend React/UI work gssoc:approved Admin validation: approved for GSSoC scoring level:intermediate 35 pts difficulty label for moderate contributor PRs type:testing Testing work category bonus label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[E2E] Add Playwright coverage for workflow create/run/delete lifecycle

2 participants