[MGNLUI-7444] Improvements in new FakeMagnoliaUi extension Created: 22/Aug/22  Updated: 25/Aug/22

Status: Accepted
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Jorge Franco Assignee: Michael Duerig
Resolution: Unresolved Votes: 0
Labels: foundation_team, junit5
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
causality
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-7445 Implementation Sub-task To Do  
MGNLUI-7446 Review Sub-task To Do  
MGNLUI-7447 Pre-Integration QA Sub-task To Do  
MGNLUI-7448 QA Sub-task To Do  
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: Basic JUnit 5
Team: Foundation

 Description   

We have created a new junit5 extension to test UI, similar to the deprecated FakeMagnoliaUi class. We have removed JCR dependencies, and we have created tests in the new Norsu pages app. The effort was initiated in https://jira.magnolia-cms.com/browse/NORSU-438, but still, there is room for more improvements. Split this task into other tasks if necessary. The improvements are optional and can be ignored:

  • Make the extension available via annotation. At the moment, is used only with RegisterExtension annotation.
  • Delete the temporal folders used by ResourceOrigin.
  • Remove the support for content types and content type dependencies. Or add some tests to validate them if kept.
  • Think of a way to extend the FakeMagnoliaUiExtension, for example, to use Norsu or Jcr datasources, or content types. Trying to create a common way to extend and not repeat yourself each time you want to test applications.

Generated at Mon Feb 12 09:46:14 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.