Skip to content

Instantly share code, notes, and snippets.

@dsnopek
Forked from lsolesen/gist:7718271
Last active December 29, 2015 19:49
Show Gist options
  • Save dsnopek/7719632 to your computer and use it in GitHub Desktop.
Save dsnopek/7719632 to your computer and use it in GitHub Desktop.
Got it passed creating the page.
Feature: Add spotlight widget
In order to promote content
As a site administrator
I need to be able to add a spotlight
@api @javascript
Scenario: Add a spotlight
Given I am logged in as a user with the "administrator" role
When I visit "/node/add/panopoly-page"
And I fill in the following:
| Title | Testing spotlight |
| Editor | plain_text |
| body[und][0][value] | Testing spotlight |
And I press the "Publish" button
Then I should see "Content Page Testing spotlight has been created."
When I click "Customize this page"
And I click "/panels/ajax/ipe/select-content/panelizer%3Anode%3A5%3Apage_manager/contentmain"
And I click "Add spotlight"
Then I should see "Configure new Add Spotlight"
When I fill in the following:
| Title | Testing title |
| Link | http://drupal.org |
| Image | |
| Description | Testing description |
When I click "Save"
Then I should see "Testing title"
And I should see "Testing description"
And I should not see "Spotlight"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment