Skip to content

Commit

Permalink
fix(tests) Tests broken by combination of last two commits (#1141)
Browse files Browse the repository at this point in the history
  • Loading branch information
marwoodandrew authored Jun 25, 2021
1 parent 530c3ee commit bdb30e0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions features/news_api_item.feature
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@ Feature: News API Item
Then we get "test test" in text response

Scenario: Retrieve an item with associations
Given "products"
"""
[{
"companies" : [
"#companies._id#"
],
"sd_product_id": "12345",
"product_type": "news_api"
}
]
"""
Given "items"
"""
[{
Expand All @@ -113,7 +124,7 @@ Feature: News API Item
"body_html": "<p>test&nbsp;test</p>",
"associations": {
"featuremedia": {
"products": ["12345", "6789"],
"products": [{"code": "12345"}, {"code": "6789"}],
"subscribers": ["12345", "6789"],
"renditions": {
"16-9": {
Expand Down Expand Up @@ -191,6 +202,6 @@ Feature: News API Item
{
"guid": "111",
"headline": "headline 1",
"associations": {"featuremedia": {"products": [{"code": "1234"}], "renditions": {"original": {}} }}
"associations": {"featuremedia": {"renditions": {"original": {}} }}
}
"""
2 changes: 1 addition & 1 deletion features/news_api_search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ Feature: News API News Search
"""
{"_items": [
{"_id": "111",
"associations": {"featuremedia": {"products": [{"code": "1234"}], "renditions": {"original": {}} }}}
"associations": {"featuremedia": {"renditions": {"original": {}} }}}
]}
"""
When we get "news/search?q=aardvark&include_fields=associations"
Expand Down

0 comments on commit bdb30e0

Please sign in to comment.