This repository was archived by the owner on Nov 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments