Standard edition featurings
As an Editor. I want to be able to create and manage features for configurable standard editions. So that I can link users to relevant documents and links.
Background:
- Given I am a GDS admin
- And a featurable standard edition called "
Featurable Edition" exists - And the configurable document types feature flag is enabled
Scenario: Featuring an edition
- Given a published standard edition called Featured edition exists
- When I visit the standard edition featuring index page
- And I feature "
Featured edition" - Then I see that "
Featured edition" has been featured
Scenario: Reordering currently featured documents
- Given two featurings exist for the edition
- When I visit the standard edition featuring index page
- And I set the order of the edition featurings to:
title order Featured Edition 2 0 Featured Edition 1 1 - Then the edition featurings should be in the following order:
title Featured Edition 2 Featured Edition 1
Scenario: Featuring an external website link
- Given the standard edition has an external website link with the title "
Featured link" - When I visit the standard edition featuring index page
- And I feature the external website link called "
Featured link" - Then I see that the external website link called "
Featured link" has been featured
Scenario: Creating an external website link
- When I visit the standard edition featuring index page
- And I create a new external website link with the title "
Featured link" - Then I can see the external website link with the title "
Featured link"
Scenario: Editing an external website link
- Given the standard edition has an external website link with the title "
Featured link" - When I visit the standard edition featuring index page
- And I update the title of an external website link from "
Featured link" to "New title" - Then I can see the external website link with the title "
New title"
Scenario: Deleting an external website link
- Given the standard edition has an external website link with the title "
Featured link" - When I visit the standard edition featuring index page
- And I delete the external website link called "
Featured link" - Then I can see that the external website link called "
Featured link" has been deleted
Source: features/standard-edition-featurings.feature at commit 59fc7c54, Whitehall (MIT license).