You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of presenting a server error to the user if they try and create
an edition that has the base path of another published edition, the
error is now presented to the user.
Copy file name to clipboardExpand all lines: features/standard-edition.feature
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,3 +57,12 @@ Feature: Standard Editions
57
57
And choosing a document type should take me to a preview page summarising the changes
58
58
And when I click "Confirm document type change"
59
59
Then the document type should have updated
60
+
61
+
Scenario: Creating a new draft configurable document with the same base path as an already published configurable document
62
+
Given I am a writer
63
+
And the configurable document types feature flag is enabled
64
+
And the test configurable document type is defined
65
+
And I have published a configurable document titled "The history of GOV.UK"
66
+
When I draft a new "Test configurable document type" configurable document with the same title as a published edition
67
+
Then I should see an error of "Title has been used before on GOV.UK, although the page may no longer exist. Please use another title" on the new configurable document page
68
+
And the form should retain the user input with the title "The history of GOV.UK" before submit
0 commit comments