-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Only allow legacy HTML on AditionalInfo content (#1210)
<!--- Provide a general summary of your changes in the Title above --> ## Description Added check for content type. Only add HTML to valid media types if scope is set, *and* type is AdditionalInfo ## Related Issue(s) - #1209 ## Verification - [x] **Your** code builds clean without any errors or warnings - [ ] Manual testing done (required) - [x] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced media type validation based on user permissions for dialog content. - Introduced flexible initialization for test user claims in integration tests. - Added new test cases for dialog creation, specifically validating HTML content handling. - **Bug Fixes** - Refined validation rules for media types and content values to ensure proper checks. - **Tests** - Expanded integration tests to cover additional scenarios and edge cases for dialog creation. - **Chores** - Improved dependency injection setup and initialization process for integration tests. - Updated local development configuration to disable various features and enable authentication. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Magnus Sandgren <[email protected]>
- Loading branch information
1 parent
bddfa5e
commit aa4acde
Showing
4 changed files
with
158 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters