[MGNLUI-6214] FMUI - Allow creation of FakeApps that will have a UIComponent to allow dialog-only tests Created: 16/Sep/20  Updated: 04/Nov/22

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

Type: Improvement Priority: Neutral
Reporter: Šimon Demočko Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: FakeMagnoliaUI
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-5974 Make content app instances a part of ... Closed
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)

 Description   

Currently, as can be seen in the example here https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/pull-requests/1606/diff#magnolia-ui-framework-jcr/src/test/java/info/magnolia/ui/UploadFieldTest.java?t=115 we need to create an actual yaml-based content app to be able to open a dialog. 

We would want to rather just register a fake app, if any, but the OpenDialogAction does require some UIComponent to work. Fake app however does not have a UIComponent at the moment. 

As part of ticket

  • apply the change to the test mentioned above to not be relying on multiValueProperty content app, which is a file created for a different test
  • apply the change also to the MultiValuePropertyTest as well and remove the content app afterwards
  • apply the change also to the MultiFieldTest as well 

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