Altinn / Altinn/app-frontend-react

Integration tests issue with required auth level != 1

Open
#2,425 0 comments 0 reactions 0 assignees View on GitHub
kind/other quality/debt
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description

If a test app is configured to have required authentication level 2,3, or 4, then a e2e test will fail it's auth againt the app as the authenticationLevel option in cy.startAppInstance seems to always give 1, no matter the value provided.

A simple workaround is to make the test app require auth level 1.

### Additional Information

_No response_

### Tasks

_No response_

### Acceptance Criterias

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the cy.startAppInstance entry point and how its authenticationLevel option reaches the test app. Reproduce the failure with required authentication levels 2, 3, and 4, then verify that the e2e tests authenticate successfully for each configured level.

Written by the indexing model from the issue text.

Assessment

Tech stack
cypress, typescript
Domain
frontend, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.