Skip to content

Set up TestDriver with sample tests - #4

Open
testdriverai[bot] wants to merge 1 commit into
mainfrom
setup-testdriver
Open

testdriverai[bot] wants to merge 1 commit into
mainfrom
setup-testdriver

Conversation

@testdriverai

@testdriverai testdriverai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Summary

This pull request sets up TestDriver.ai end-to-end tests for the Todo React application.

Changes

  • Configured Vitest and TestDriver SDK dependencies in package.json
  • Added vitest.config.mjs with recommended execution timeouts
  • Added .gitignore for node_modules, .env, and test artifacts
  • Added sample automated tests in tests/todo.test.mjs targeting the production app (https://javascriptbear.github.io/todo_react_app/):
    • Task creation flow: Launches the app, opens the "New Task" modal, fills title and summary, creates the task, and asserts the new task is displayed in the list.
    • Theme toggle: Tests switching between light and dark mode.
  • Updated .github/workflows/testdriver.yml to run Vitest in CI using TD_API_KEY / TESTDRIVER_API_KEY.

Want help from the team that built TestDriver? Explore TestDriver for Business

@testdriverai testdriverai Bot mentioned this pull request Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants