фронтенд, в котором есть наши непубличные ветки
Go to file
Untone a95c78fd60
Some checks failed
deploy / test (push) Failing after 6m54s
deploy / Update templates on Mailgun (push) Has been skipped
unused-rm
2024-10-03 00:01:01 +03:00
.gitea/workflows Merge branch 'feature/e2e-tests' into router-upgrade 2024-07-04 01:25:07 +03:00
.github/workflows vite535 2024-09-16 13:52:33 +03:00
.storybook editor-showup+fixes 2024-09-24 09:48:39 +03:00
.vscode lock+fmt 2024-08-05 15:02:13 +03:00
api noapi 2024-09-16 04:06:17 +03:00
patches packages-revert-fix 2024-09-16 12:25:28 +03:00
public minor fixes 2024-09-06 07:55:57 +03:00
src unused-rm 2024-10-03 00:01:01 +03:00
templates preprocess-text-fix 2024-07-05 22:40:54 +03:00
tests Merge branch 'dev' of https://github.com/Discours/discoursio-webapp into dev 2024-09-15 21:54:40 +03:00
.editorconfig init 2022-09-09 14:53:35 +03:00
.gitignore editor-showup+fixes 2024-09-24 09:48:39 +03:00
.npmrc Merge branch 'editor' of gitlab.com:discoursio/discoursio-webapp into editor 2023-04-26 02:37:29 +00:00
.stylelintignore editor-showup+fixes 2024-09-24 09:48:39 +03:00
.stylelintrc.json stylelint-order-fmt 2024-07-12 16:19:49 +03:00
app.config.ts editor-showup+fixes 2024-09-24 09:48:39 +03:00
biome.json views-refactored 2024-10-02 23:12:14 +03:00
codegen.yml inbox-route 2024-08-02 00:32:52 +03:00
LICENSE e2e 2024-02-04 16:25:23 +03:00
package-lock.json views-refactored 2024-10-02 23:12:14 +03:00
package.json views-refactored 2024-10-02 23:12:14 +03:00
playwright.config.ts e2e-wip 2024-07-30 22:44:53 +03:00
README.en.md typecheck-fix 2024-07-13 10:53:35 +03:00
README.md inbox-route 2024-08-02 00:32:52 +03:00
tsconfig.json https 2024-07-13 20:15:41 +03:00
vite.config.ts editor-showup+fixes 2024-09-24 09:48:39 +03:00

Development setup recommendations

How to start

Use bun i, npm i, pnpm i or yarn to install packages.

Config of variables

  • Use .env file to setup your own development environment
  • Env vars with prefix PUBLIC_ are widely used in /src/utils/config.ts

Useful commands

run checks, fix styles, imports, formatting and autofixable linting errors:

bun run typecheck
bun run fix

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 npm run e2e:install to install the necessary dependencies for running the tests.

  2. Run the tests: After using npm run 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.

🚀 Tests in CI Mode

Tests are executed within a GitHub workflow. We organize our tests into two main directories:

  • tests: Contains tests that do not require authentication.
  • tests-with-auth: Houses tests that interact with authenticated parts of the application.

🔧 Configuration:

Playwright is configured to utilize the BASE_URL environment variable. Ensure this is properly set in your CI configuration to point to the correct environment.

📝 Note:

After pages have been adjusted to work with authentication, all tests should be moved to the tests directory to streamline the testing process.