Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Lack of end-to-end tests for core user journeys and installation flow across multiple database backends

Đang mở
#1,558 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
cypress, docker-compose, go, mysql, playwright, postgresql, react, sqlite, typescript

Hướng nghiên cứu

Bắt đầu bằng cách xem xét các bài kiểm thử backend Go hiện có và ui/src/App.test.tsx, sau đó so sánh các cách tiếp cận của Playwright và Cypress với môi trường Docker Compose được đề xuất. Xác định các quy trình cài đặt và hành trình người dùng cốt lõi cần tự động hóa, đồng thời xác minh rằng bộ kiểm thử có thể chạy với SQLite, MySQL và PostgreSQL bằng một lệnh cục bộ duy nhất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

new-feature
Background

Apache Answer currently relies primarily on unit tests for the Go backend and a single front-end smoke test (ui/src/App.test.tsx). While these tests are useful for verifying isolated functions and repository queries, they do not exercise the complete user journey or the installation process that every real deployment goes through.

Current Situation

There is no end-to-end (E2E) testing framework or test suite in the repository. The following critical aspects of the product are only validated manually:

  1. The installation flow
    Answer is not ready to use immediately after startup. An administrator must complete an install wizard (database configuration, site settings, admin account creation) before the application is functional. This flow is currently not covered by any automated test.

  2. Core user journeys after installation
    After setup, essential flows such as user registration, login, asking a question, posting an answer, voting, accepting an answer, adding comments, searching, and changing settings in the admin panel are only checked by hand before releases.

  3. Multiple database backends
    Answer officially supports SQLite, MySQL, and PostgreSQL. Today there is no automated test that verifies the application behaves correctly on all three database engines.

Because of this gap:

  • Refactors, dependency upgrades, or changes that cross the front-end/back-end boundary can introduce regressions that unit tests do not catch.
  • Installation-related changes are difficult to validate safely.
  • New contributors cannot confidently modify core workflows.
  • Release preparation requires repeated manual smoke testing, which is slow and inconsistent.
Why This Needs to Be Fixed

A Q&A platform’s reliability depends on the smooth operation of its full lifecycle: installation, day-to-day usage, and administration. When any of these break—especially on a supported database that was not manually tested—the product experience is compromised. E2E tests are the most practical way to guarantee that these flows work across browsers, database backends, and UI changes.

Goal

Establish a complete, maintainable end-to-end testing path that can be run locally with a single command through Docker Compose, spinning up the full environment (Answer application + database). The test suite should:

  • Cover the entire installation wizard from a fresh state;
  • Validate the core user journeys after installation;
  • Cover as many foundational features as technically feasible, including but not limited to user registration, login, question creation, answering, voting, accepting answers, commenting, searching, and common admin settings;
  • Be executable against all three supported databases: SQLite, MySQL, and PostgreSQL.

Possible implementation approaches include using Playwright or Cypress to drive the browser, paired with a Docker Compose setup that starts the Answer backend, the front-end build, and the selected database together.

Ngôn ngữ chính
Go
Star
15.7k
Fork
1.4k
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
6

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/answer

Tất cả issue của apache/answer

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.