Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legge til storybook for inntektsgradering i uttak #6966

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

thomashwi
Copy link
Collaborator

Legger til en story for inntektsgradering i uttak, inkludert tester

@thomashwi thomashwi requested a review from a team as a code owner January 8, 2025 14:27
Copy link
Collaborator

@hallvardastark hallvardastark left a comment

Choose a reason for hiding this comment

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

Ser ut som at du har en feil import

@thomashwi thomashwi enabled auto-merge (squash) January 9, 2025 13:40
</FeatureTogglesContext.Provider>
),
play: async ({ canvasElement, step }) => {
const canvas = within(canvasElement);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Du kan hente ut canvas direkte i linja over i stedet for canvasElement, så slipper du å gjøre within her

await userEvent.click(førstePeriode);
await expect(detaljer).toBeVisible();

await expect(await inntekt.findByText('Beregningsgrunnlag: 720 000 kr')).toBeInTheDocument();
Copy link
Collaborator

Choose a reason for hiding this comment

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

findBy... er promise-basert, så du kan evt bruke getBy... så slipper du await inntekt. her

@thomashwi thomashwi merged commit 917eb67 into master Jan 13, 2025
5 checks passed
@thomashwi thomashwi deleted the justering-uttak-storybook-test branch January 13, 2025 10:11
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