Skip to content

pagopa/pagopa-selfcare-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,400 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selfcare Backoffice Frontend

Quality Gate Status Integration Tests

Check the last report of integration test

https://pagopa.github.io/pagopa-selfcare-frontend/

To configure the workspace execute the following commands

yarn install

yarn generate

To execute locally a configured workspace execute the following command

  • yarn start

To execute locally mocking REST invocation, modify the file .env.development.local setting

  • REACT_APP_API_MOCK_PORTAL=true

To build a configured workspace execute the following command

yarn build

To execute a coverage check based on unit test execute the following command

yarn test:coverage

How to retrieve the test token for local run

Token Configuration

In constants.ts you can set a test token with a default fallback value when the environment variable is not configured.

Retrieving the Token

To obtain a valid test token for local development:

  1. Access Development Environment

    • Navigate to the dev environment
    • Complete the SPID login process
  2. Select Demo Configuration

    • Choose the demo EC/PSP account
  3. Extract Authorization Header

    • Open browser Developer Tools
    • Monitor network requests (e.g., /flags endpoint)
    • Copy the Authorization header value

Local Setup

Set the extracted token value in your local environment:

# File: .env.development.local
REACT_APP_JWT=your_authorization_token_here

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 27

Languages