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

chore: 14263 create studio status radio group #14272

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

wrt95
Copy link
Contributor

@wrt95 wrt95 commented Dec 12, 2024

Description

  • Creating a radio group with radio buttons with status colours
Skjermopptak.2024-12-12.kl.12.49.42.mov

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

@wrt95 wrt95 linked an issue Dec 12, 2024 that may be closed by this pull request
@github-actions github-actions bot added solution/studio/designer Issues related to the Altinn Studio Designer solution. frontend labels Dec 12, 2024
const user = userEvent.setup();
renderStudioStatusRadioGroup();

const successRadioButton = screen.getByRole('radio', { name: `${mockTitle1} ${mockText1}` }); // Any way to do it without having both title and text?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@framitdavid, do you have a better suggestion here? 🤔

await user.click(infoRadioButton);

expect(mockOnChange).toHaveBeenCalledWith(mockValue2);
expect(mockOnChange).toHaveBeenCalledTimes(2); // Why is this being called twice?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@framitdavid, do you have a suggestion here? 🤔

@wrt95 wrt95 added team/studio-core skip-manual-testing PRs that do not need to be tested manually labels Dec 12, 2024
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.53%. Comparing base (37d92b5) to head (6845bf9).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14272   +/-   ##
=======================================
  Coverage   95.52%   95.53%           
=======================================
  Files        1826     1828    +2     
  Lines       23757    23773   +16     
  Branches     2752     2753    +1     
=======================================
+ Hits        22695    22711   +16     
  Misses        807      807           
  Partials      255      255           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend skip-manual-testing PRs that do not need to be tested manually solution/studio/designer Issues related to the Altinn Studio Designer solution. team/studio-core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create StudioStatusRadioGroup component
1 participant