-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
04-04-landing-page-paragraphs_text-and-image-paragraphs.feature
64 lines (61 loc) · 3.43 KB
/
04-04-landing-page-paragraphs_text-and-image-paragraphs.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Feature: Content Structure - Landing page (Paragraphs) - Varbase text and image paragraphs
# As a logged in user with a permission to mange Landing page (Paragraphs)
# I want to be able to add number of Text and image paragraph compoments
# So that the "Landing page (Paragraphs)" will have text and images in right and left view.
# @javascript @local @development @staging @production
# Scenario: Upload the Embed Flag Earth file
# Given I am a logged in user with the "Site admin" user
# When I go to "/media/add/image"
# And wait
# Then I should see "Allowed types: png gif jpg jpeg webp."
# When I attach the file "flag-earth.jpg" to "edit-field-media-image-0-upload"
# And wait
# And I press the "Save" button
# And wait
# And I fill in "Flag Earth in space" for "field_media_image[0][alt]"
# And I fill in "Flag Earth all earth in space" for "field_media_image[0][title]"
# And I fill in "Flag Earth" for "name[0][value]"
# And I check the box "Show in media library"
# And I press the "Save" button
# And wait
# Then I should see "Flag Earth"
#-----------------------------------------------------------------------------
# @javascript @local @development @staging @production
# Scenario: Check if a user with a permission to manage Landing page (Paragraphs) content type create a new Landing page
# Given I am a logged in user with the "Site admin" user
# When I go to "/node/add/landing_page"
# And wait
# And I fill in "Test landing page title for text and image paragraphs" for "Title"
# And I fill in "Test landing page body description." for "Page description"
# When I press "Add Component"
# And I wait for AJAX to finish
# And I wait for 1 second
# And I select the "text_and_image" paragraph component
# And I wait for AJAX to finish
# Then I should see "Text and image"
# And I should see "No media items are selected."
# When I press "field_image-media-library-open-button-field_lp_paragraphs-0-subform"
# And I wait for AJAX to finish
# And I should see "Name"
# When I fill in "Flag Earth" for "Name"
# And I press the "Apply filters" button
# And I wait for AJAX to finish
# Then I should see image with the "Flag Earth all earth in space" title text
# When I check the box "media_library_select_form[0]"
# And I wait for AJAX to finish
# And I press "dialog-submit"
# And I wait for AJAX to finish
# And I scroll up
# Then I should see "Flag Earth"
# When I scroll up
# And I scroll up
# And I scroll up
# Then I should see "Text"
# When I click "Text"
# And I fill in the rich text editor field "Text" with "In eros ipsum, mattis vitae vulputate eu, blandit non risus. Maecenas ultricies volutpat massa id hendrerit. Phasellus magna quam, lacinia sed justo pulvinar, tristique finibus felis. Quisque in sagittis tellus. Curabitur in est at quam maximus elementum. Pellentesque interdum tincidunt nisl, ac efficitur elit aliquam id. Integer egestas neque ut risus tincidunt semper."
# And wait
# And I select "published" from "edit-moderation-state-0-state--2--gin-edit-form"
# And I press the "Save as" button
# And wait
# Then I should see "In eros ipsum, mattis vitae vulputate eu, blandit"
# And I should see image with the "Embed Flag Earth in space" alt text