Skip to content

Instantly share code, notes, and snippets.

@lsolesen
Last active December 29, 2015 19:39
Show Gist options
  • Save lsolesen/7718271 to your computer and use it in GitHub Desktop.
Save lsolesen/7718271 to your computer and use it in GitHub Desktop.
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 title |
| Editor | plain_text |
| body[und][0][value] | Testing spotlight body |
And I press "Publish"
Then the "h1" element should contain "Testing spotlight title"
When I click "Customize this page"
# "Add new pane" is hidden. How to click this using Behat?
When I click "Add new pane"
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 press "Save"
Then I should see "Testing title"
And I should see "Testing description"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment