[MGNLUI-4274] Select new image with predefined image path does not always work Created: 21/Aug/17  Updated: 11/Mar/21  Resolved: 11/Mar/21

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

Type: Bug Priority: Neutral
Reporter: Michael Mühlebach Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File bug_image_selection_with_valid_path_740.mov    
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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Summary

In the page editor with a Text and Image component the image can be either selected with the asset chooser or the path can be pasted into the field directly. The image will be rendered as soon as the field will loose its focus and the button for choosing an image will change from Select new ... to Select another ....
In the scenario where you paste the path and then hit Select new ... this gets a little bit more complicated.

Expected Behavior

  • Edit Page
  • Add component Text and Image
  • Select Image Tab
  • Paste valid asset path into image field (ex in demo: /tours/shark_brian_warrick_0824.JPG)
  • Select Select new...
  • Dialog with correct asset path selected shows up

Actual Behavior

  • Paste valid asset path into image field (ex in demo: /tours/shark_brian_warrick_0824.JPG)
  • Select Select new... Important: Only click without moving cursor afterwards! Easier to achieve with mouse than touchpad but works with both
  • Image will be rendered on top and button changes from Select new ... to Select another ... but dialog will not show up.
  • Move cursor
  • Image chooser dialog will show up.
    see attached video.


 Comments   
Comment by Michael Mühlebach [ 21/Aug/17 ]

Just as a sidenote: This behavior leads to unstable ui test results: Especially the test ContentAppUITest#itemSelectedInChooseDialogWhenRootPathIsSet suffers from it.

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