Skip to content
This repository was archived by the owner on Nov 16, 2021. It is now read-only.

Commit cd260dd

Browse files
authored
Issue #2919031 by balsama: Add functional tests of media filters and actions
1 parent 9355b14 commit cd260dd

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

tests/features/media/filters.feature

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@lightning @api @media
2+
Feature: Media content list page
3+
4+
@0207232c
5+
Scenario: Media actions are present
6+
Given I am logged in as a user with the "media_creator" role
7+
And media entities:
8+
| bundle | name | embed_code | status | field_media_in_library |
9+
| tweet | I'm a tweet | https://twitter.com/50NerdsofGrey/status/757319527151636480 | 1 | 1 |
10+
| instagram | I'm an instagram | https://www.instagram.com/p/BaecNGYAYyP/ | 1 | 1 |
11+
When I visit "/admin/content/media"
12+
Then I should see "Action"
13+
14+
@c292f45d
15+
Scenario: Media actions are functional
16+
Given I am logged in as a user with the "administrator" role
17+
And media entities:
18+
| bundle | name | embed_code | status | field_media_in_library |
19+
| tweet | I'm a tweet | https://twitter.com/50NerdsofGrey/status/757319527151636480 | 1 | 1 |
20+
| instagram | I'm an instagram | https://www.instagram.com/p/BaecNGYAYyP/ | 1 | 1 |
21+
When I visit "/admin/content/media"
22+
And I should see "I'm a tweet"
23+
And I should see "I'm an instagram"
24+
And I select "Delete media" from "Action"
25+
And I check the box "edit-media-bulk-form-0"
26+
And I check the box "edit-media-bulk-form-1"
27+
And I press the "Apply to selected items" button
28+
And I press the "Delete" button
29+
Then I should see "Deleted 2 media items."
30+
And I should not see "I'm a tweet"
31+
And I should not see "I'm an instagram"

0 commit comments

Comments
 (0)