-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this 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
</FeatureTogglesContext.Provider> | ||
), | ||
play: async ({ canvasElement, step }) => { | ||
const canvas = within(canvasElement); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
Legger til en story for inntektsgradering i uttak, inkludert tester