lobe-chat/e2e/package.json
Arvin Xu b6f1fc4a14
test: add BDD test framework and initial tests with Playwright and Cucumber (#9843)
* try with bdd test

* update

* update

* add workspace

* update

* fix

* ci

* ci

* fix

* update

* update

* update parallel

* update config

* ️ perf: increase e2e timeout to 120 seconds

Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>

* update config

* more parallel

* fix parallel

* fix tests

* refactor to improve performance

* fix

* fix

* fix

* refactor with tsx

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Arvin Xu <arvinxx@users.noreply.github.com>
2025-10-23 02:15:24 +08:00

25 lines
876 B
JSON

{
"name": "@lobechat/e2e-tests",
"version": "0.1.0",
"private": true,
"description": "E2E tests for LobeChat using Cucumber and Playwright",
"scripts": {
"test": "cucumber-js --config cucumber.config.js",
"test:discover": "cucumber-js --config cucumber.config.js src/features/discover/",
"test:headed": "HEADLESS=false cucumber-js --config cucumber.config.js",
"test:routes": "cucumber-js --config cucumber.config.js --tags '@routes'",
"test:routes:ci": "cucumber-js --config cucumber.config.js --tags '@routes and not @ci-skip'",
"test:smoke": "cucumber-js --config cucumber.config.js --tags '@smoke'"
},
"dependencies": {
"@cucumber/cucumber": "^12.2.0",
"@playwright/test": "^1.56.1",
"playwright": "^1.56.1"
},
"devDependencies": {
"@types/node": "^22.10.5",
"tsx": "^4.20.6",
"typescript": "^5.7.3"
}
}