|
| 1 | +@mink:selenium2 @alice(Page) @reset-schema |
| 2 | +Feature: Create link to a Business Page |
| 3 | + Background: |
| 4 | + Given I maximize the window |
| 5 | + And I am on homepage |
| 6 | + |
| 7 | + Scenario: I can view the mercenary show view |
| 8 | + Given the following Mercenaries: |
| 9 | + | name | midiChlorians | slug | |
| 10 | + | Boba fet | 1500 | boba-fet | |
| 11 | + And the following BusinessTemplate: |
| 12 | + | currentLocale | name | backendName | slug | businessEntityId | parent | template | |
| 13 | + | en | Character profile - {{item.name}} | Character profile | character-profile-{{item.slug}} | character | home | base | |
| 14 | + And the following WidgetMap: |
| 15 | + | view | action | slot | |
| 16 | + | character-profile-{{item.slug}} | create | main_content | |
| 17 | + And the following WidgetText: |
| 18 | + | widgetMap | fields | mode | businessEntityId | |
| 19 | + | character-profile-{{item.slug}} | a:1:{s:7:"content";s:4:"name";} | businessEntity | character | |
| 20 | + And I am on "/en/victoire-dcms/business-template/show/4" |
| 21 | + Then I should see "Boba fet" |
| 22 | + And I am on "/en/character-profile-boba-fet" |
| 23 | + Then I should see "Boba fet" |
| 24 | + When I am on "/" |
| 25 | + Then I switch to "layout" mode |
| 26 | + And I should see "New content" |
| 27 | + When I select "Button" from the "1" select of "main_content" slot |
| 28 | + Then I should see "Widget (Button)" |
| 29 | + When I select "Website page" from "_a_static_widget_button[link][linkType]" |
| 30 | + And I should see "Choose a page" |
| 31 | + When I select "Character profile - Boba fet" from "_a_static_widget_button[link][viewReference]" |
| 32 | + And I fill in "_a_static_widget_button[title]" with "Boba fet profile" |
| 33 | + And I submit the widget |
| 34 | + When I reload the page |
| 35 | + Then I should see "Boba fet profile" |
| 36 | + When I follow "Boba fet profile" |
| 37 | + Then I should be on "/en/character-profile-boba-fet" |
| 38 | + |
0 commit comments