Two of the e2e subscription tests fail if they are running against the dev environment.

Đang mở
#326 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cypress, docker, typescript
Lĩnh vực
devops, testing-qa

Hướng nghiên cứu

Bắt đầu bằng cách chạy thiết lập Docker được ghi trong tài liệu và yarn e2e run run, tập trung vào các lỗi được báo cáo cho subscriptions.spec.ts, organization_create.spec.ts và organization_page.spec.ts. So sánh kết quả trong môi trường phát triển với yarn build; NODE_ENV=test yarn start; hoàn thành có nghĩa là các kiểm thử end-to-end bị ảnh hưởng đều thành công trên môi trường phát triển.

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

Mô tả

🐛 bug help wanted
Summary

While developing my system I want to be able to run the e2e tests against my development environment and I expect them to pass.

Steps to reproduce

In first terminal:

  1. clone the repo
  2. cd into repo
  3. export UID; yarn docker setup
  4. echo "ENABLE_CYPRESS_COMMANDS=1" >> docker/.env
  5. export UID; yarn docker start

In second terminal:

  1. cd into the repo
  2. docker compose exec server bash
  3. Install cypress deps with sudo apt update;sudo apt install libatk-bridge2.0-0 libatk1.0-0 libasound2 libgbm1 libgtk-3-0 libnss3 xvfb
  4. install cypress @app/e2e/node_modules/cypress/bin/cypress install
  5. Run the tests with yarn e2e run run
Expected results

That the tests pass

Actual results
  (Run Finished)


       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  homepage.spec.ts                         00:09        1        1        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  login.spec.ts                            00:12        2        2        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  manage_emails.spec.ts                    00:21        2        2        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  organization_create.spec.ts              00:16        2        1        1        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  organization_page.spec.ts                00:19        3        2        1        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  register_account.spec.ts                 00:22        4        4        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  subscriptions.spec.ts                    00:22        3        2        1        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  verify_email.spec.ts                     00:03        1        1        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✖  3 of 8 failed (38%)                      02:06       18       15        3        -        -  
Additional context

Host machine is ubuntu 22.04 with node 18.12.1

Possible Solution

Those tests pass if I run yarn build; NODE_ENV=test yarn start

Ngôn ngữ chính
TypeScript
Star
1.8k
Fork
226
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 graphile/starter

Tất cả issue của graphile/starter

Issue tương tự

Thêm issue về TypeScript

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.