Skip to content

Add Cypress integration test for new Shorts feature #1435

Open
@kyleecodes

Description

@kyleecodes

Overview

Shorts are new features on the Bloom app, located on the /courses page, and provide short-form video content. To see an example, navigate to /shorts/what-is-assertiveness-.

We need to add end-to-end Cypress tests for the Shorts features to ensure their core functionality works as expected. These tests will help catch any regressions in these critical user flows.

Here is the user flow for Shorts:

  1. User visits the home page
  2. User clicks on a short
  3. User plays the short
  4. User clicks on the related session
  5. User is prompted to login
  6. User logs in
  7. User is redirected to and plays the session

Action Items

  • Create new test file in cypress/integration/tests called shorts.spec.ts
  • Add necessary test data in cypress/fixtures/ if required
  • Ensure tests handle authentication flow, error handling, and timeouts properly.

Resources / Notes

  • To run each test individually, command in /docs/configure-cypress.md.
  • Use existing authentication helpers from cypress/support/
  • Follow existing test patterns in the codebase.
  • Ensure tests are resilient to UI changes where possible.
  • Add appropriate comments and documentation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions