AdHocCypress/README.mdx

Summary

Maintainability
Test Coverage
import { Meta, Markdown } from '@storybook/blocks';

<Meta title="cypress/Ad Hoc Tests" />

# Ad Hoc Cypress Tests

## General approach to end-to-end (E2E) testing

This is documented in [the README in the primary directory of our cypress tests](https://github.com/bbc/simorgh/blob/latest/cypress/README.md).

## This suite of tests

The purpose of this test suite is to allow for testing of ad-hoc functionality within the Simorgh application, without affecting the tests which are executed as part of the End-to-End tests in both the Test and Live environments.

## Running Ad Hoc Tests

<Markdown>
{`
| Environment | Command                                    |
| ----------- | ------------------------------------------ |
| local       | \`CYPRESS_APP_ENV=local yarn cypress:adhoc\` |
| test        | \`CYPRESS_APP_ENV=test yarn cypress:adhoc\`  |
| live        | \`CYPRESS_APP_ENV=live yarn cypress:adhoc\`  |
`}
</Markdown>

As with the primary Cypress tests, the same [environment variables](https://github.com/bbc/simorgh#environment-variables) can also be used with the `cypress:adhoc` command