фронтенд, в котором есть наши непубличные ветки
Go to file
2024-08-22 16:27:09 +03:00
.gitea/workflows Merge branch 'feature/e2e-tests' into router-upgrade 2024-07-04 01:25:07 +03:00
.github/workflows e2e-testing 2024-08-05 15:09:57 +03:00
.vscode lock+fmt 2024-08-05 15:02:13 +03:00
api empty-files-removed 2024-07-22 17:40:26 +03:00
patches hub 2024-02-16 17:56:56 +03:00
public edit-new-wip 2024-07-16 01:57:44 +03:00
src header-links-fix 2024-08-22 16:27:09 +03:00
templates preprocess-text-fix 2024-07-05 22:40:54 +03:00
tests tests 2024-07-31 01:39:24 +03:00
.editorconfig init 2022-09-09 14:53:35 +03:00
.gitignore bump-deploy 2024-08-22 15:45:36 +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 stylelint-order-fmt 2024-07-12 16:19:49 +03:00
app.config.ts nitro-timing-log 2024-08-14 15:50:01 +03:00
biome.json home-tops 2024-06-28 10:47:38 +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 bump-deploy 2024-08-22 15:45:36 +03:00
package.json bump-deploy 2024-08-22 15:45:36 +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

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.