mirror of
https://github.com/cline/cline.git
synced 2026-10-30 18:12:49 +08:00
* Add Playwright E2E tests Adding end-to-end (E2E) testing capabilities using Playwright. It also updates the `@vscode/test-electron` dependency. The changes include: - Adding Playwright as a dev dependency. - Adding `e2e` and `e2e:build` scripts to `package.json` for running E2E tests. - Adding `@playwright/test` to the list of dependencies. - Updating `@vscode/test-electron` from `2.4.1` to `2.5.2`. - Adding `test-results` to `.gitignore` to exclude test result files. * wip: github workflow Adding a new GitHub Actions workflow for running end-to-end (E2E) tests using Playwright. The workflow is triggered on push to the main branch, pull requests, and manual workflow dispatch. The workflow defines a matrix strategy to run tests on different runners (Ubuntu and Windows) and shards. It also uploads Playwright recordings as artifacts if the tests fail. * add @vscode/vsce as dev dep * update workflow * apply feedback * fix test workflows * add command palette helper This commit improves the reliability and efficiency of the end-to-end tests by: - Adding a delay to the "Let's go!" button click in the auth test to ensure the action is properly registered. - Adding an expectation to ensure the "Get Started for Free" button is no longer visible after API key submission. - Caching the "Use your own API key" button to avoid redundant lookups. - Introducing a `runCommandPalette` helper function to streamline command execution within the VS Code environment. - Disabling notifications before running the tests to prevent interference. * state change * set TEMP_PROFILE * v3.18.7 Release Notes * changeset version bump * Updating CHANGELOG.md format * Update CHANGELOG.md for version 3.18.7 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: pashpashpash <nik@cline.bot> * Remove optimistic loading from organization dropdown (#4746) * update build script to javascript * fix match * Add mode switching to chat test * expected --------- Co-authored-by: abeatrix <beatrix@cline.bot> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: pashpashpash <nik@cline.bot> Co-authored-by: canvrno <46584286+canvrno@users.noreply.github.com>
19 lines
839 B
JSON
19 lines
839 B
JSON
{
|
|
// This separate tsconfig is necessary because VS Code's test runner requires CommonJS modules,
|
|
// while our main project uses ES Modules (ESM). This config inherits most settings from the base
|
|
// tsconfig.json but overrides the module system for test files only. This doesn't affect how
|
|
// tests interact with the main codebase - it only changes how the test files themselves are
|
|
// compiled to make them compatible with VS Code's test runner.
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"types": ["node", "mocha", "should", "vscode", "chai"],
|
|
"typeRoots": ["./node_modules/@types", "./src/test/types"],
|
|
"outDir": "out",
|
|
"rootDir": "."
|
|
},
|
|
"include": ["src/**/*.test.ts"],
|
|
"exclude": ["src/test/**/*.js", "src/**/__tests__/*", "src/test/e2e/**/*.test.ts"]
|
|
}
|