diff --git a/.github/workflows/runTests.yml b/.github/workflows/runTests.yml index 268b5d88..1f42a57d 100644 --- a/.github/workflows/runTests.yml +++ b/.github/workflows/runTests.yml @@ -16,4 +16,4 @@ jobs: run: npm ci - name: Run all vitest tests - run: npm run aegtest + run: npx vitest diff --git a/.gitignore b/.gitignore index 65248912..820f525f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,6 @@ peircemyheart-* docs public/docs electron-build -/test-results/ -/playwright-report/ -/playwright/.cache/ +test-results/ +playwright-report/ +playwright/.cache/ diff --git a/README.md b/README.md index 249d96af..465f33f3 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ We also use it to invoke all core development tools via `npm run`. 2. [**Vite**](https://vitejs.dev/) : Vite is an asset bundler and build system for large web projects with many types of resources such as typescript. Additionally, it provides excellent debugging features. We use it as a build system for Typescript, Asset Compressor, and Live Debugger. - * **Playwright** : a testing framework compatible with Vite with support for TypeScript. Very similar to Vitest but more for the UI side of things. + * **Playwright** : a testing framework compatible with Vite with support for TypeScript. * **Vitest** : a testing framework native to Vite with support for TypeScript. It allows for github workflow compatibility and running numerous tests with one command. 3. [**gts**](https://github.com/google/gts) : gts (Google TypeScript Style) is a set of style guidelines and tools for typescript diff --git a/playwright.config.js b/playwright.config.js index f8583734..0d883d4e 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -1,11 +1,4 @@ import {defineConfig, devices} from "@playwright/test"; - -/** - * Read environment variables from file. - * https://github.com/motdotla/dotenv - */ -// require('dotenv').config(); - /** * See https://playwright.dev/docs/test-configuration. */ @@ -38,36 +31,6 @@ export default defineConfig({ name: "chromium", use: {...devices["Desktop Chrome"]}, }, - /* - { - name: "firefox", - use: {...devices["Desktop Firefox"]}, - }, - - { - name: "webkit", - use: {...devices["Desktop Safari"]}, - }, - */ - /* Test against mobile viewports. */ - // { - // name: 'Mobile Chrome', - // use: { ...devices['Pixel 5'] }, - // }, - // { - // name: 'Mobile Safari', - // use: { ...devices['iPhone 12'] }, - // }, - - /* Test against branded browsers. */ - // { - // name: 'Microsoft Edge', - // use: { ...devices['Desktop Edge'], channel: 'msedge' }, - // }, - // { - // name: 'Google Chrome', - // use: { ...devices['Desktop Chrome'], channel: 'chrome' }, - // }, ], //Run your local dev server before starting the tests diff --git a/tests/UI/atom.spec.ts b/tests/UI/atom.spec.ts index 96c68d3f..c5897e06 100644 --- a/tests/UI/atom.spec.ts +++ b/tests/UI/atom.spec.ts @@ -14,7 +14,6 @@ test.beforeAll("Reading expected strings in from .json files...", async () => { }); fs.readFile(__dirname + "/expectedTrees/loneAtom.json", "utf8", (err: Error, data: string) => { - //loneAtomString = data.substring(data.lastIndexOf("A"), data.lastIndexOf("},")); loneAtomString = data; });