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

OPENEUROPA-1325: Media entity browser handling for files #9

Merged
merged 6 commits into from
Nov 21, 2018

Conversation

sergepavle
Copy link
Member

@sergepavle sergepavle commented Nov 16, 2018

OPENEUROPA-1325

Description

Media entity browser handling for files

Change log

  • Create entity browser widget for "creating" file media entities
  • Adjust the test that selects media via the entity browser to select also existing file entities
  • Test the entity browser widget that creates and selects the file entity

@sergepavle sergepavle force-pushed the OPENEUROPA-1325 branch 2 times, most recently from 9802c88 to 04c39b5 Compare November 19, 2018 09:26
@@ -49,3 +49,13 @@ widgets:
weight: 3
label: 'Add Image'
id: entity_form
e9f8e84a-9574-4de7-90de-caec7acf030d:
Copy link
Member

Choose a reason for hiding this comment

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

Why do we move this browser definition from the main module to the demo one? This doesn't seem to be the scope of the ticket

Copy link
Member Author

Choose a reason for hiding this comment

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

This is decision was discussed with @upchuk . End users (site builders) could have many field which allow use only some media types. That is why common media entity browser which support all existing media type could be not relevant anymore.

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough! :)

imanoleguskiza
imanoleguskiza previously approved these changes Nov 20, 2018
upchuk
upchuk previously approved these changes Nov 21, 2018
And I press the "Select entities" button
Then I should see entity browser modal window
When I click "View"
And I select the "Media document" media entity in the entity browser modal window
And I press the "Select entities" button
And I press the "Save" button
Then I should see "sample.pdf"
Then I should see the link "sample.pdf"
# Cleanup of the media entity.
Copy link
Member

Choose a reason for hiding this comment

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

The cleanup should be done with @afterScenario.
It's not a blocker but please create a follow-up ticket if you don't take this change it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants