Add to Cheatsheet: Create support command to verify user can't create content

Created on 20 November 2023, 7 months ago
Updated 1 December 2023, 7 months ago

Pseudocode Proposal:

  • In the support folder, add a file named createEventDenied.js
  • Create the test (code below)
  • Document that they should verify e2e.js in the support folder imports the commands with import './commands'
Cypress.Commands.add("createEventDenied", () => {
  cy.request({
    url: '/node/add/event',
    followRedirect: false,
    failOnStatusCode: false
  }).then((resp) => {
      expect(resp.status).to.eq(403)
  })
});
✨ Feature request
Status

Fixed

Component

Commands

Created by

πŸ‡ΊπŸ‡ΈUnited States Stockfoot

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024