Use Case "BlueSpice: Workflow for reviewing a page draft and accept it as a flagged revision"

From SMW CindyKate - Main
Component 192075
Jump to: navigation, search


Feature

 @setup @addusers @main
 Scenario: Add test users
   * BS: I log in as standard user
   * BS: I add users:
     | username      |
     | Test User 006 |
     | Test User 007 |
 @setup @main
 Scenario: Enable a namespace for flagged revisions
   * BS: I log in as standard user
   * BS: I enable option "FlaggedRevs" for namespace "(Pages)" See Detailed User Actions
 @setup @addtestpages @main
 Scenario: Add test page
   * BS: I log in as standard user
   * BS: I add page:
     | pagealias                                 | content     |
     | single simple test page in main namespace | new content |
 @setup @addworkflows @main
 Scenario: Add workflow to test page
   * BS: I log in as standard user
   * BS: I add workflow to page "single simple test page in main namespace":
     | reviewer      | comment    |
     | Test User 006 | comment 3  |
     | Test User 007 | comment 4  |
 @check @main
 Scenario: Check test page settings
   * BS: I log in as standard user
   * BS: Ensure page "single simple test page in main namespace" is protected
   * BS: Ensure page "single simple test page in main namespace" does NOT show workflow alerts
 @check @main
 Scenario: Check whether test page is correctly registered in workflow subsystem special pages
   * BS: I log in as standard user
   * BS: Ensure page "single simple test page in main namespace" is correctly registered on workflow special pages:
     | onpage                        | setting          |
     | Special:ConfiguredPages       |                  |
     | Special:ReviewedPages         |                  |
     | Special:Review                |                  | # Page name is Special:Review but page title is "Review overview"
     | Special:Review/Test User 006  |                  |
     | Special:Review/Test User 007  |                  |
 @check @main
 Scenario: Check whether test page is correctly registered in workflow subsystem for first reviewer
   * BS: I log in as "Test User 006"
   * BS: Ensure page "single simple test page in main namespace" does show workflow alerts
   * BS: Ensure page "single simple test page in main namespace" does request review
   * BS: Ensure page "single simple test page in main namespace" does allow to edit review
 @check @main
 Scenario: Check whether test page is correctly registered in workflow subsystem for second reviewer
   * BS: I log in as "Test User 007"
   * BS: Ensure page "single simple test page in main namespace" does NOT show workflow alerts
   # QUESTION TO DOMAIN SPECIALIST: Is the following assumption correct?
   * BS: Ensure page "single simple test page in main namespace" does allow to edit review
 @action @main
 Scenario:  Review as first reviewer
   * BS: I log in as "Test User 006"
   * BS: I edit pages:
     | pagealias                                 | content                      |
     | single simple test page in main namespace | NEW CONTENT by Test User 006 |
   * BS: I add review to page "single simple test page in main namespace"
     | comment    | action |
     | Comment    | Agree  |
   * BS: Ensure page "single simple test page in main namespace" does NOT show workflow alerts
 @action @main
 Scenario:  Review as second reviewer
   * BS: I log in as "Test User 007"
   * BS: I add review to page "single simple test page in main namespace"
     | comment    | action             |
     | Comment    | Confirm agreement  |
   * BS: Ensure page "single simple test page in main namespace" does NOT show workflow alerts
 @action @main
 Scenario:  Accept draft as standard user
   * BS: I log in as standard user
   * I visit aliased page "single simple test page in main namespace"
   * I click the link2 "accept" with id "bs-frc-flagnow" # Ugly for manual
   * BS: I fill in reviews acceptance comment "Accepted"
   * BS: I confirm reviews acceptance comment by clicking "Ok"
   * BS: I confirm reviews acceptance success by clicking "Ok"
 @check @main
 Scenario:  Check whether test page is correctly registered in workflow subsystem for standard user
   * BS: I log in as standard user
   #* BS: Ensure page "single simple test page in main namespace" indicates status "approved" for review by user "Test User 006"
   #* BS: Ensure page "single simple test page in main namespace" indicates status "unknown" for review by user "Test User 007"
   * BS: Ensure page "single simple test page in main namespace" is correctly registered on workflow special pages:
     | special_page_name             | setting          |
     #| Special:ConfiguredPages       |                  |
     | Special:ReviewedPages         |                  |
     #| Special:Review                |                  | # Page name is Special:Review but page title is "Review overview"
     #| Special:Review/Test User 006  |                  |
     #| Special:Review/Test User 007  |                  |