Skip to content

Comments

IA-4772: poc front end testing#2742

Draft
hugo093 wants to merge 3 commits intodevelopfrom
IA-4772-POC-front-end-testing
Draft

IA-4772: poc front end testing#2742
hugo093 wants to merge 3 commits intodevelopfrom
IA-4772-POC-front-end-testing

Conversation

@hugo093
Copy link
Contributor

@hugo093 hugo093 commented Feb 16, 2026

What problem is this PR solving?

We don't have any tests for front end nor do we have any plans to do it, this demonstrates how to setup a modern front end testing.

Related JIRA tickets

IA-4772

Changes

  • Refactored some files so they all have .ts/.tsx extensions
  • Setup and configure vitest with react-testing library
  • Setup and configure playwright with muliple purposes : e2e and smoke test
  • Example on how to do integration testing (with vitest and react-testing) without any backend
  • Adapted eslint config and tsconfigs.

How to test

I'll do a "demo" to explain / show more, but otherwise :

npm ci
npx playwright install --with-deps
npm run test
npm run test:e2e
npm run test:smoke

Copy link
Member

@quang-le quang-le left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's plan a demo soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants