Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

ISAICP-6763: New banner on homepage #2633

Open
wants to merge 11 commits into
base: ISAICP-6415
Choose a base branch
from

This file was deleted.

25 changes: 0 additions & 25 deletions config/sync/entityqueue.entity_queue.discover_topics.yml

This file was deleted.

8 changes: 0 additions & 8 deletions config/sync/tour.tour.joinup_homepage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ tips:
location: left
attributes:
data-class: search-bar
discover_topics:
id: discover_topics
plugin: text
body: 'Or, select a topic to view relevant content items.'
weight: 3
location: right
attributes:
data-class: view-discover-topics
spotlight:
id: spotlight
plugin: text
Expand Down
1 change: 0 additions & 1 deletion config/sync/user.role.moderator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ permissions:
- 'unfeature entity'
- 'update any simple_block block content'
- 'update collection_settings meta-entity'
- 'update discover_topics entityqueue'
- 'update highlighted_event entityqueue'
- 'update highlighted_solution entityqueue'
- 'update paragraph content iframe'
Expand Down
1 change: 0 additions & 1 deletion config/sync/views.view.curated_content_listings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ display:
type: views_multiple_permissions
options:
permissions:
- 'update discover_topics entityqueue'
- 'update highlighted_event entityqueue'
- 'update highlighted_solution entityqueue'
- 'update spotlight entityqueue'
Expand Down
194 changes: 0 additions & 194 deletions config/sync/views.view.discover_topics.yml

This file was deleted.

1 change: 0 additions & 1 deletion tests/behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ default:
Contact information inline form: '#edit-field-ar-contact-information-wrapper'
Content: '.section--content-middle, main .layout-content'
Cookie consent banner: '#cookie-consent-banner'
Discover topics block: '.block-views-blockdiscover-topics-block'
Entity actions: '.block-joinup-local-tasks-block'
Explore block: '.block-joinup-front-page-explore-block'
Featured: '.region-featured'
Expand Down
59 changes: 0 additions & 59 deletions tests/features/homepage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -180,65 +180,6 @@ Feature: Homepage
Then I should be on the search page
And I should see the "RNA vaccines" tile

# Todo: This test is disabled because of a persisting failure on CPHP which
# cannot be replicated locally. To be enabled again once we have moved to
# the new infrastructure.
# See https://citnet.tech.ec.europa.eu/CITnet/jira/browse/ISAICP-6656
@terms @javascript @wip
Scenario Outline: Discover topics block shows a list of topics.
Given collection:
| title | Clash of vania's |
| state | validated |
And news content:
| title | headline | collection | topic | state | publication date | body |
| Some title | Some headline | Clash of vania's | E-justice | validated | 2021-04-26T19:09:00Z | Body |
| Internet medicine | It cures virtually everything | Clash of vania's | E-health Dpt. | validated | 2014-02-22T19:26:57Z | Electronic healthcare |
And the "Discover topics" content listing contains:
| type | label |
| topic | Employment and Support Allowance |
| topic | E-justice |
When I <logged in>
And I am on the homepage
Then I should see the link "Employment and Support Allowance" in the "Discover topics block"
And I should see the link "E-justice" in the "Discover topics block"
When I click "E-justice"
Then I should be on the advanced search page
And the option with text "E-justice" from select facet "topic" is selected

# See more topics modal.
When I am on the homepage
Then I should see the link "See more topics" in the "Discover topics block"
And I should not see the text "Topic categories"
And I should not see the following links in the "Discover topics block":
| Economy and Welfare |
| eGov |
| E-health Dpt. |
| HR Dpt. |
| Info |
| Law and Justice |
| Social and Political |

When I click "See more topics" in the "Discover topics block"
Then a modal should open
And I should see the text "Topic categories"
And I should see the following links:
| Economy and Welfare |
| eGov |
| E-health Dpt. |
| HR Dpt. |
| Info |
| Law and Justice |
| Social and Political |
When I click "E-health Dpt." in the "Modal content"
Then I should be on the advanced search page
And the option with text "E-health Dpt." from select facet "topic" is selected
And the page should show the tiles "Internet medicine"

Examples:
| logged in |
| am not logged in |
| am logged in as a user with the authenticated role |

@terms
Scenario: Explore block shows a selection of news, events, collections and solutions
Given users:
Expand Down
5 changes: 2 additions & 3 deletions tests/features/moderator/curated_content_listings.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ Feature: Curated content listings
And I click "Curated content listings"
Then I should see the heading "Curated content listings"
And I should see the following links:
| Discover topics |
| Highlighted event |
| Highlighted solution |
| In the spotlight |
When I click "Discover topics"
Then I should see the heading "Update curated content listing Discover topics"
When I click "In the spotlight"
Then I should see the heading "Update curated content listing In the spotlight"
And I should see the button "Add item"
And I should see the button "Save"
And I should see the button "Reverse"
Expand Down
Loading