[PR #1788] [MERGED] feat: add basic cypress test as initial work towards e2e tests #7576

Closed
opened 2025-11-11 17:30:40 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/1788
Author: @cheahjs
Created: 4/27/2024
Status: Merged
Merged: 4/27/2024
Merged by: @tjbck

Base: devHead: feat/cypress-tests


📝 Commits (1)

  • 730befc feat: add basic cypress test as initial work towards e2e tests

📊 Changes

13 files changed (+1995 additions, -38 deletions)

View changed files

📝 .eslintrc.cjs (+1 -0)
.github/workflows/integration-test.yml (+55 -0)
📝 .gitignore (+5 -1)
cypress.config.ts (+8 -0)
cypress/e2e/chat.cy.ts (+46 -0)
cypress/e2e/registration.cy.ts (+52 -0)
cypress/e2e/settings.cy.ts (+88 -0)
cypress/support/e2e.ts (+73 -0)
cypress/support/index.d.ts (+11 -0)
cypress/tsconfig.json (+7 -0)
📝 package-lock.json (+1644 -35)
📝 package.json (+4 -1)
📝 src/lib/apis/streaming/index.ts (+1 -1)

📄 Description

Pull Request Checklist

  • Description: Briefly describe the changes in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?

Description

This a basic implementation of the Cypress test framework and a GitHub Actions workflow for running the test.

At the moment, the tests are very basic and minimal, but should have enough plumbing set up to allow for additional tests to be written relatively painlessly. An example of a workflow run can be found at https://github.com/cheahjs/open-webui-fork/actions/runs/8860092359

https://github.com/open-webui/open-webui/assets/818368/40402ec7-30b6-42de-b9ea-40258df5f158

https://github.com/open-webui/open-webui/assets/818368/34243ea1-ccee-4364-81e9-c20a477041ba

https://github.com/open-webui/open-webui/assets/818368/e7a9eaee-69f8-477e-b081-da4609ef5503


Changelog Entry

Added

  • [List any new features or additions]

Fixed

  • [List any fixes or corrections]

Changed

  • [List any changes or updates]

Removed

  • [List any removed features or files]

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/1788 **Author:** [@cheahjs](https://github.com/cheahjs) **Created:** 4/27/2024 **Status:** ✅ Merged **Merged:** 4/27/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `feat/cypress-tests` --- ### 📝 Commits (1) - [`730befc`](https://github.com/open-webui/open-webui/commit/730befce45fdb42ef16909b645d57664102f09e3) feat: add basic cypress test as initial work towards e2e tests ### 📊 Changes **13 files changed** (+1995 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `.eslintrc.cjs` (+1 -0) ➕ `.github/workflows/integration-test.yml` (+55 -0) 📝 `.gitignore` (+5 -1) ➕ `cypress.config.ts` (+8 -0) ➕ `cypress/e2e/chat.cy.ts` (+46 -0) ➕ `cypress/e2e/registration.cy.ts` (+52 -0) ➕ `cypress/e2e/settings.cy.ts` (+88 -0) ➕ `cypress/support/e2e.ts` (+73 -0) ➕ `cypress/support/index.d.ts` (+11 -0) ➕ `cypress/tsconfig.json` (+7 -0) 📝 `package-lock.json` (+1644 -35) 📝 `package.json` (+4 -1) 📝 `src/lib/apis/streaming/index.ts` (+1 -1) </details> ### 📄 Description ## Pull Request Checklist - [x] **Description:** Briefly describe the changes in this pull request. - [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? --- ## Description This a basic implementation of the [Cypress](https://www.cypress.io/) test framework and a GitHub Actions workflow for running the test. At the moment, the tests are very basic and minimal, but should have enough plumbing set up to allow for additional tests to be written relatively painlessly. An example of a workflow run can be found at https://github.com/cheahjs/open-webui-fork/actions/runs/8860092359 https://github.com/open-webui/open-webui/assets/818368/40402ec7-30b6-42de-b9ea-40258df5f158 https://github.com/open-webui/open-webui/assets/818368/34243ea1-ccee-4364-81e9-c20a477041ba https://github.com/open-webui/open-webui/assets/818368/e7a9eaee-69f8-477e-b081-da4609ef5503 --- ### Changelog Entry ### Added - [List any new features or additions] ### Fixed - [List any fixes or corrections] ### Changed - [List any changes or updates] ### Removed - [List any removed features or files] --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:30:40 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7576