Secure and quality content - Automating moderation tests with Cypress
Time: Thursday 14th May 09:40-10:10
Room: Loft
Track: Drupal Development
The quality and security of content on government sites is of paramount importance. Content is required to flow through a number of checks and balances before it is published to the wider public. Website owners and senior stakeholders have a very strong interest in ensuring the accuracy and reliability of published content.
In a CMS such as Drupal, Content Moderation is the technical approach taken to enforce workflows between editors and approvers. It can be complex to set up as a number of different roles, states, transitions and access levels need to be coordinated. It is possibly the biggest area of misconfiguration on government sites and also the one with the most serious consequences. Ensuring a robust workflow is therefore attractive for ensuring trust and reputation.
This presentation will illustrate how automated tests using the Cypress framework can be configured to handle the complex checks which need to take place. This includes handing logged in user sessions, progressing content through a flow and validating access levels across a number of different user roles. Marji will demonstrate a simple library, open sourced by Morpht, that helps with simplifying the rule writing process. End to end tests will show how simple config errors can be easily caught for remediation.
This presentation will cover:
* The top level concepts of peer review
* The information security requires for government agencies
* The basic content moderation setup in Drupal
* Common problematic areas: technical and social
* Brief introduction to Cypress testing framework
* Introducing the open source helper library
* Demonstration of the tests running
* Ideas for the future on how Cypress can help in other areas.
The presentation will be of interest to site and platform owners who are interested in maximising accuracy of content. Developers with an interest in testing will also find it of interest.
In a CMS such as Drupal, Content Moderation is the technical approach taken to enforce workflows between editors and approvers. It can be complex to set up as a number of different roles, states, transitions and access levels need to be coordinated. It is possibly the biggest area of misconfiguration on government sites and also the one with the most serious consequences. Ensuring a robust workflow is therefore attractive for ensuring trust and reputation.
This presentation will illustrate how automated tests using the Cypress framework can be configured to handle the complex checks which need to take place. This includes handing logged in user sessions, progressing content through a flow and validating access levels across a number of different user roles. Marji will demonstrate a simple library, open sourced by Morpht, that helps with simplifying the rule writing process. End to end tests will show how simple config errors can be easily caught for remediation.
This presentation will cover:
* The top level concepts of peer review
* The information security requires for government agencies
* The basic content moderation setup in Drupal
* Common problematic areas: technical and social
* Brief introduction to Cypress testing framework
* Introducing the open source helper library
* Demonstration of the tests running
* Ideas for the future on how Cypress can help in other areas.
The presentation will be of interest to site and platform owners who are interested in maximising accuracy of content. Developers with an interest in testing will also find it of interest.
Speakers
Marji Cermak
Marji is a co-founder and the chief systems administrator for Morpht, specialising in DevOps, security, the ELK stack, Docker, CI integrations, automated testing and developer workflow – with Drupal being the centre of his attention.
Additional speakersnone