Skip to content

Commit

Permalink
Add a cucumber test for the fixed behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorova authored and nidhi-soni1104 committed Jan 2, 2024
1 parent 6b18355 commit 1b80981
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions features/old/cms/pages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,18 @@ Feature: CMS Pages
And I press "Publish"
And I should see "Page saved and published"
Then preview draft link should link to "/hattori"

Scenario: Update page after unsuccessful validation
Given the provider has cms page "/some-path" with:
"""
Sample content
"""
And I go to the CMS Page "/some-path" page
And I fill in "Title" with ""
And I press "Save"
And I should see "Title can't be blank"
And I fill in "Title" with "New title"
And I press "Save"
And I should see "Page saved."
And I go to the CMS Page "/some-path" page
Then I should see "Page 'New title'"

0 comments on commit 1b80981

Please sign in to comment.