diff --git a/examples/nuxt-app/test/features/landingpage/page-components.feature b/examples/nuxt-app/test/features/landingpage/page-components.feature index 6001bcc557..390611ceee 100644 --- a/examples/nuxt-app/test/features/landingpage/page-components.feature +++ b/examples/nuxt-app/test/features/landingpage/page-components.feature @@ -50,6 +50,10 @@ Feature: Home page | displayStyle | title | content | image | | profile | Promo card (profile) | Sample description | /placeholders/medium.png | + Then a promo card with ID "979" should exist with the following properties + | displayStyle | title | content | image | + | highlight | Promo card (highlight) | Sample description | | + @mockserver Scenario: Page component - Nav card Then a nav card with ID "981" should exist with the following properties diff --git a/examples/nuxt-app/test/fixtures/landingpage/home.json b/examples/nuxt-app/test/fixtures/landingpage/home.json index f2e982bbd0..96e9373f7c 100644 --- a/examples/nuxt-app/test/fixtures/landingpage/home.json +++ b/examples/nuxt-app/test/fixtures/landingpage/home.json @@ -511,6 +511,42 @@ } } }, + { + "uuid": "c509edfe-89a6-4b8d-b8e1-f72e6774da1x", + "component": "TideLandingPagePromoCard", + "id": "979", + "layout": "card", + "props": { + "displayStyle": "highlight", + "title": "Promo card (highlight)", + "summary": "Sample description", + "image": { + "src": "/placeholders/medium.png", + "focalPoint": { + "x": 707, + "y": 393 + }, + "alt": "Demo: Melbourne tram", + "width": 1413, + "height": 785, + "title": "Demo: Melbourne tram" + }, + "link": { + "text": "", + "url": "/demo-destination" + }, + "showMetadata": true, + "metadata": { + "dateStart": "2019-07-02 09:00:00", + "dateEnd": "2019-07-07 10:00:00", + "topic": "Demo Topic", + "contentType": "Event", + "fvRecommendationStatus": "", + "inductionYear": "", + "isGrantOngoing": false + } + } + }, { "uuid": "e92bbc8b-a2b6-4fdf-aa10-2329a0b0bc5a", "component": "TideLandingPageNavCard", diff --git a/packages/ripple-tide-landing-page/components/global/TideLandingPage/PromoCard.vue b/packages/ripple-tide-landing-page/components/global/TideLandingPage/PromoCard.vue index 48874213f0..e4da39fd23 100644 --- a/packages/ripple-tide-landing-page/components/global/TideLandingPage/PromoCard.vue +++ b/packages/ripple-tide-landing-page/components/global/TideLandingPage/PromoCard.vue @@ -18,9 +18,9 @@

{{ summary }}