-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content modelling/748 add review page to the reschedule journey #9747
Open
Harriethw
wants to merge
4
commits into
main
Choose a base branch
from
content-modelling/748-add-review-to-schedule-edit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
lib/engines/content_block_manager/features/reschedule_object.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Feature: Schedule a content object | ||
Background: | ||
Given I am a GDS admin | ||
And the organisation "Ministry of Example" exists | ||
And a schema "email_address" exists with the following fields: | ||
| field | type | format | required | | ||
| email_address | string | email | true | | ||
And an email address content block has been created | ||
|
||
@disable-sidekiq-test-mode | ||
Scenario: GDS Editor immediately publishes a scheduled content object | ||
When I am updating a content block | ||
Then I am asked when I want to publish the change | ||
And I schedule the change for 7 days in the future | ||
When I review and confirm my answers are correct | ||
When I click to view the content block | ||
And I click to edit the schedule | ||
And I choose to publish the change now | ||
And I save and continue | ||
When I click to view the content block | ||
Then the published state of the object should be shown | ||
And there should be no jobs scheduled | ||
|
||
@disable-sidekiq-test-mode | ||
Scenario: GDS Editor reschedules a content object | ||
When I am updating a content block | ||
Then I am asked when I want to publish the change | ||
And I schedule the change for 7 days in the future | ||
When I review and confirm my answers are correct | ||
When I click to view the content block | ||
And I click to edit the schedule | ||
And I schedule the change for 5 days in the future | ||
When I click to view the content block | ||
Then I should see the scheduled date on the object | ||
And there should only be one job scheduled | ||
|
||
@disable-sidekiq-test-mode | ||
Scenario: GDS Editor tries to reschedule a content object without choosing to schedule | ||
When I am updating a content block | ||
Then I am asked when I want to publish the change | ||
And I schedule the change for 7 days in the future | ||
When I review and confirm my answers are correct | ||
When I click to view the content block | ||
And I click to edit the schedule | ||
And I save and continue | ||
Then I see the error message "Schedule publishing cannot be blank" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this move might be a bit controversial but thought it worth getting some feedback on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, I think it makes total sense