Skip to content

Instantly share code, notes, and snippets.

@melissamcewen
Last active March 12, 2018 21:25
Show Gist options
  • Save melissamcewen/621aedb1329eff151065c560a6f891e1 to your computer and use it in GitHub Desktop.
Save melissamcewen/621aedb1329eff151065c560a6f891e1 to your computer and use it in GitHub Desktop.
See if a pane with a contextual view correctly displays
@api
Feature: related content appears on articles
In order to help visitors find related content
Items of the related content type should appear on articles with the same primary taxonomy
Scenario: When a related content item and an article have the same taxonomy, the related content item should display on the article
Given "taxonomy" terms:
| name |
| Tag one |
And "related_content" content:
| title | status | field_primary_taxonomy | field_related_content_type | field_headline |
| This is related | 1| Tag one | External | This is related |
Given I am viewing an "Article" content:
| title | test title |
| field_primary_taxonomy | Tag one |
| status | 1 |
Then I should see the text "Related Content"
And I should see the text "This is related"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment