Skip to content
Snippets Groups Projects
Commit 4423655a authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3151759: Enable Simple Workflow for all content types on new Varbase...

Issue #3151759: Enable Simple Workflow for all content types on new Varbase Installations  by Varbase Workflow and update Automated Functional Acceptance Testing
parent ee867f49
No related branches found
No related tags found
No related merge requests found
Showing
with 93 additions and 118 deletions
......@@ -125,6 +125,7 @@ install:
- drush pm-enable social_auth_linkedin --yes
- drush pm-enable varbase_layout_builder --yes
- drush pm-enable vlplb --yes
- drush pm-enable varbase_content_planner --yes
- drush config-set system.performance css.preprocess 0 --yes
- drush config-set system.performance js.preprocess 0 --yes
- drush config-set system.logging error_level all --yes
......
......@@ -27,7 +27,6 @@ So that they will be disabled and not be able to use the site.
And I wait
Then I should see "test_authenticated"
When I select the radio button "Blocked"
And I select "published" from "edit-moderation-state-0-state"
And I press the "Save" button
And I wait
Then I should see "The changes have been saved."
......
Feature: Check JSON:API admin interface and services and Varbase API settings
Feature: Check JSON API admin interface and services and Varbase API settings
As a site admin user
I want to be able to check the JSON:API available interface options
So that I can use them to enable or disable API service for Varbase APIs.
......@@ -51,7 +51,7 @@ So that I can use them to enable or disable API service for Varbase APIs.
And I wait
Then I should see "OpenAPI Resources"
And I should see "Rest"
And I should see "JsonApi"
And I should see "JSON:API"
When I go to "/admin/config/services/openapi/redoc/rest"
And I wait
......
......@@ -17,7 +17,7 @@ So that I can see path I followed to locate the current page usually near the to
And I select "published" from "edit-moderation-state-0-state"
And I press the "Save" button
And I wait
Then I should see "Basic page Test Basic page root title has been created."
Then I should see "Test Basic page root title"
And I should see "Test Basic page root body"
@javascript @local @development @staging @production
......
......@@ -26,8 +26,7 @@ I want to be able to clone an entity.
And I select the "bp_simple" paragraph component
And I wait
Then I should see "Modal body"
When I fill in the rich text editor field "Text" with "Modal Body test"
And I select "published" from "edit-moderation-state-0-state"
And I fill in the rich text editor field "Text" with "Modal Body test"
And I press the "Save" button
Then I should see "Modal button"
When I click "Clone"
......
......@@ -35,6 +35,8 @@ So that will ease the work of adding internal links in the rich text editor fiel
And I press the "o" key in the "Link" field
And I press the "enter" key in the "Link" field
And I wait for AJAX to finish
And I wait 2s
And I wait for AJAX to finish
Then I should see "Linking to internal content #1 title"
When I click "Linking to internal content #1 title" in the "ul" element with the "class" attribute set to "ui-autocomplete"
Then I should not see "Linking to internal content #1 title"
\ No newline at end of file
Feature: Content Management - Content moderation workflows. Simple workflow, and Editorial workflow
As a content admin
I want to be able to manage the workflow of content in simple and editorial workflows
So that will have an easy publishing workflow with revisions.
@javascript @local @development @staging @production
Scenario: Check Simple workflow on Draft, Published, and Archived and content types
Given I am a logged in user with the "webmaster" user
When I go to "/admin/config/workflow/workflows/manage/varbase_simple_workflow"
And I wait
Then I should see "Simple"
And I should see "Draft"
And I should see "Published"
And I should see "Archived / Unpublished"
And I should see "Create new draft"
And I should see "Publish"
And I should see "Archive / Unpublish"
And I should see "Restore from archive"
And I should see "Landing page"
And I should see "Basic page"
And I should see "Blog post"
And I should see "Hero slider"
@javascript @local @development @staging @production
Scenario: Check Editorial workflow on Draft, Published, In review, and Archived
Given I am a logged in user with the "webmaster" user
When I go to "/admin/config/workflow/workflows/manage/varbase_editorial_workflow"
And I wait
Then I should see "Editorial"
And I should see "Draft"
And I should see "In review"
And I should see "Published"
And I should see "Archived / Unpublished"
And I should see "Create new draft"
And I should see "Send to review"
And I should see "Publish"
And I should see "Archive / Unpublish"
And I should see "Restore from archive"
\ No newline at end of file
Feature: Content Management - Content Planning and scheduling
As a content admin
I want to be able to add plan content publishing for internal content
So that they will be scheduled to publish or publish on the planed time.
@javascript @local @development @staging @production
Scenario: Check Content planner dashboard page
Given I am a logged in user with the "webmaster" user
When I go to "/admin/content-planner/dashboard"
And I wait
Then I should see "Dashboard"
And I should see "Content Status Widget"
And I should see "Recent Calendar Publications Widget"
And I should see "Recent Kanban Activities"
@javascript @local @development @staging @production
Scenario: Check Content Calendar page
Given I am a logged in user with the "webmaster" user
When I go to "/admin/content-calendar/show-current-year"
And I wait
Then I should see "Content Calendar"
@javascript @local @development @staging @production
Scenario: Check Content Kanban page
Given I am a logged in user with the "webmaster" user
When I go to "/admin/content-kanban"
And I wait
Then I should see "Content Kanban"
And I should see "Simple"
# WIP needs to manage permissions and a check for each user role.
\ No newline at end of file
......@@ -7,117 +7,22 @@ Feature: Delete default testing users
# test_site_admin: { email: 'site.admin.test@vardot.com', password: 'dD.123123ddd' }
# test_super_admin: { email: 'super.admin.test@vardot.com', password: 'dD.123123ddd' }
Background:
Given I am a logged in user with the "webmaster" user
@javascript @cleanup @tools @local @development @staging
Scenario: Delete the test_authenticated user
When I go to "/admin/people"
And I wait
And I fill in "test_authenticated" for "Name or email contains"
And I press "Filter"
And I wait
Then I should see "test_authenticated"
When I click "Edit" in the "test_authenticated" row
Then I should see "test_authenticated"
When I press "Cancel account"
And I wait
Then I should see "Are you sure you want to cancel the account test_authenticated?"
When I select the radio button "Delete the account and its content."
And I press "Cancel account"
And I wait for 10s
Then I should see "test_authenticated has been deleted."
@javascript @cleanup @tools @local @development @staging
Scenario: Delete the test_editor user
Scenario: Delete default testing users.
Given I am a logged in user with the "webmaster" user
When I go to "/admin/people"
And I wait
And I fill in "test_editor" for "Name or email contains"
And I press "Filter"
And I wait
Then I should see "test_editor"
When I click "Edit" in the "test_editor" row
And I wait
Then I should see "test_editor"
When I press "Cancel account"
And I wait
Then I should see "Are you sure you want to cancel the account test_editor?"
When I select the radio button "Delete the account and its content."
And I press "Cancel account"
And I wait for 10s
Then I should see "test_editor has been deleted."
@javascript @cleanup @tools @local @development @staging
Scenario: Delete the test_content_admin user
When I go to "/admin/people"
And I fill in "test_content_admin" for "Name or email contains"
And I press "Filter"
And I wait
Then I should see "test_content_admin"
When I click "Edit" in the "test_content_admin" row
And I wait
Then I should see "test_content_admin"
When I press "Cancel account"
And I wait
Then I should see "Are you sure you want to cancel the account test_content_admin?"
When I select the radio button "Delete the account and its content."
And I press "Cancel account"
And I wait for 10s
Then I should see "test_content_admin has been deleted."
@javascript @cleanup @tools @local @development @staging
Scenario: Delete the test_seo_admin user
When I go to "/admin/people"
And I wait
And I fill in "test_seo_admin" for "Name or email contains"
And I press "Filter"
And I wait
Then I should see "test_seo_admin"
When I click "Edit" in the "test_seo_admin" row
And I wait
Then I should see "test_seo_admin"
When I press "Cancel account"
And I wait
Then I should see "Are you sure you want to cancel the account test_seo_admin?"
When I select the radio button "Delete the account and its content."
And I press "Cancel account"
And I wait for 10s
Then I should see "test_seo_admin has been deleted."
@javascript @cleanup @tools @local @development @staging
Scenario: Delete the test_site_admin user
When I go to "/admin/people"
And I wait
And I fill in "test_site_admin" for "Name or email contains"
And I press "Filter"
And I wait
Then I should see "test_site_admin"
When I click "Edit" in the "test_site_admin" row
And I wait
Then I should see "test_site_admin"
When I press "Cancel account"
And I wait
Then I should see "Are you sure you want to cancel the account test_site_admin?"
When I select the radio button "Delete the account and its content."
And I press "Cancel account"
And I wait for 10s
Then I should see "test_site_admin has been deleted."
@javascript @cleanup @tools @local @development @staging
Scenario: Delete the test_super_admin user
When I go to "/admin/people"
And I wait
And I fill in "test_super_admin" for "Name or email contains"
And I press "Filter"
And I wait
Then I should see "test_super_admin"
When I click "Edit" in the "test_super_admin" row
And I wait
Then I should see "test_super_admin"
When I press "Cancel account"
And I wait
Then I should see "Are you sure you want to cancel the account test_super_admin?"
When I select the radio button "Delete the account and its content."
And I press "Cancel account"
And I wait for 10s
Then I should see "test_super_admin has been deleted."
Then I should see "People"
When I check the box "test_authenticated"
And I check the box "test_editor"
And I check the box "test_content_admin"
And I check the box "test_seo_admin"
And I check the box "test_site_admin"
And I check the box "test_super_admin"
And I select "Cancel the selected user accounts" from "action"
When I press "Apply to selected items"
And I wait
And I select the radio button "Delete the account and its content."
And I press "Apply"
And I wait 15s
Then I should see "Action processing results: (6)."
\ No newline at end of file
......@@ -7,7 +7,7 @@ Scenario: Delete leftover media from the Media Library
And I wait
Then I should see "Media"
When I check the box "edit-select-all"
And I select "views_bulk_operations_delete_entity" from "edit-action"
And I select "Delete selected entities" from "action"
And I press "Apply to selected items"
And I wait
Then I should see "Are you sure you wish to perform"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment