mirror of
https://github.com/cline/cline.git
synced 2026-09-21 05:10:09 +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
584 B
JavaScript
19 lines
584 B
JavaScript
import { defineConfig } from "@vscode/test-cli"
|
|
import path from "path"
|
|
|
|
export default defineConfig({
|
|
files: "{out/**/*.test.js,src/**/*.test.js,!src/test/e2e/**/*.test.js,!out/src/test/e2e/**/*.test.js}",
|
|
mocha: {
|
|
ui: "bdd",
|
|
timeout: 20000, // Maximum time (in ms) that a test can run before failing
|
|
/** Set up alias path resolution during tests
|
|
* @See {@link file://./test-setup.js}
|
|
*/
|
|
require: ["./test-setup.js"],
|
|
},
|
|
workspaceFolder: "test-workspace",
|
|
version: "stable",
|
|
extensionDevelopmentPath: path.resolve("./"),
|
|
launchArgs: ["--disable-extensions"],
|
|
})
|