фронтенд, в котором есть наши непубличные ветки
Go to file
2024-07-04 21:09:15 +00:00
.gitea/workflows Merge branch 'feature/e2e-tests' into router-upgrade 2024-07-04 01:25:07 +03:00
.github/workflows feat: e2e tests are tuned for using CI script not only with localhost. But CI logic ssr not used in CI, need to generate frontend 2024-07-04 12:02:36 +00:00
api ga-integration 2024-06-26 11:22:05 +03:00
patches hub 2024-02-16 17:56:56 +03:00
public feed-wip 2024-07-03 20:38:43 +03:00
src refactored-folder-structure+imports-alias 2024-07-04 10:51:15 +03:00
templates mailgun-temaplates 2024-01-05 21:26:15 +03:00
tests feat: changed metology of starting e2e tests, now after deployment-status is changed and url is active. No more certs in tests dir, aliluya, and all for github only. Gitea CI was made not by dufok, so let it be 2024-07-04 21:09:15 +00:00
.editorconfig init 2022-09-09 14:53:35 +03:00
.gitignore Merge branch 'feature/e2e-tests' into router-upgrade 2024-07-04 01:25:07 +03:00
.npmrc Merge branch 'editor' of gitlab.com:discoursio/discoursio-webapp into editor 2023-04-26 02:37:29 +00:00
.stylelintignore store layer 2022-09-13 12:30:36 +02:00
.stylelintrc.json biome-fix 2024-02-04 14:55:38 +03:00
app.config.ts home-tops 2024-06-28 10:47:38 +03:00
biome.json home-tops 2024-06-28 10:47:38 +03:00
codegen.yml new-api 2024-03-04 15:32:48 +03:00
deploy.sh vercel-adapt 2024-07-01 16:57:30 +03:00
LICENSE e2e 2024-02-04 16:25:23 +03:00
package-lock.json lock-upgrade 2024-07-04 10:33:11 +03:00
package.json merged 2024-07-04 10:52:37 +03:00
playwright.config.ts feat: if start e2e script is has CI var set to any, than playwright not checks local http is run and dont truing to run local dev on 2024-07-04 00:17:48 +00:00
README.md Merge branch 'feature/e2e-tests' into router-upgrade 2024-07-04 01:25:07 +03:00
tsconfig.json tsc-ok 2024-06-25 14:25:20 +03:00

How to start

Use Bun to manage packages.

bun i

Useful commands

run checks

bun run typecheck

fix styles, imports, formatting and autofixable linting errors:

bun run fix

Config of variables

  • All vars are already in place and wroted in
    /src/utils/config.ts
    

End-to-End (E2E) Tests

This directory contains end-to-end tests. These tests are written using Playwright

Structure

  • /tests/*: This directory contains the test files.
  • /playwright.config.ts: This is the configuration file for Playwright.

Getting Started

Follow these steps:

  1. Install dependencies: Run pnpm e2e:install to install the necessary dependencies for running the tests.

  2. Run the tests: After using pnpm e2e:tests.

Additional Information

If workers is no needed use:

  • npx playwright test --project=webkit --workers 4

For more information on how to write tests using Playwright - Playwright documentation.