-
Notifications
You must be signed in to change notification settings - Fork 70
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
VACMS-16641: Test restricted archive workflow #17160
Conversation
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 is looking quite good @Becapa Two small suggestions.... and a bad suggestion that I retracted, but left it there for general philosophising .
And I click the "Unlock" link | ||
And I click the "Confirm break lock" button |
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.
Bonus points for having the test clean up its messes.
@@ -13,6 +13,37 @@ Feature: CMS User may effectively interact with the VBA Facility form | |||
Then the primary tab "View" should exist | |||
Then the primary tab "Edit" should not exist | |||
|
|||
Scenario: Log in and try to archive a VBA Facility as a VBA editor |
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.
Scenario: Log in and try to archive a VBA Facility as a VBA editor | |
Scenario: Test restricted_archive workflow prevents archiving a VBA Facility as a VBA editor. |
Should: It helps our future selves if the scenerio reveals the intent.
Scenario: Log in and try to archive a VBA Facility as a VBA editor | ||
When I am logged in as a user with the roles "content_creator_vba, content_publisher" | ||
And my workbench access sections are set to "1065" | ||
When I am at "/node/4063/edit" |
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.
Consider: Risky referencing a specific node. If someone actually archives that facility (if it closed) the test will break. It is not a huge issue but does create bumps in the road. I am not sure if it worth having this test create a new VBA facility as an admin, then test it, but that would reduce the risk.
edit: Given that the next test also references the node directly, I think it makes sense not sink more time into trying to have both of them create a node. It just slows things down.
And I click the "Unlock" link | ||
And I click the "Confirm break lock" button | ||
|
||
Scenario: Log in and archive a VBA Facility as an admin |
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.
Scenario: Log in and archive a VBA Facility as an admin | |
Scenario: Test restricted_archive workflow allows archiving a VBA Facility as a content_admin. |
should: future self protection.
aa331a1
to
30cedf4
Compare
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.
Nice work @Becapa
30cedf4
to
8265d16
Compare
Description
Relates to #16641
This adds two more Scenarios to tests/cypress/integration/features/content_type/facilities/vba/vba_facility.feature
QA steps
What needs to be checked to prove this works?
What needs to be checked to prove it didn't break any related things?
What variations of circumstances (users, actions, values) need to be checked?
Checking that the new tests pass and that they cover the correct scenarios should be sufficient for QAing this.
Definition of Done
Select Team for PR review
CMS Team
Public websites
Facilities
User support
Accelerated Publishing
Is this PR blocked by another PR?
DO NOT MERGE
Does this PR need review from a Product Owner
Needs PO review
CMS user-facing announcement
Is an announcement needed to let editors know of this change?