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

オープン
#326 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cypress, docker, typescript
領域
devops, testing-qa

調査の方向性

まず、ドキュメント化された Docker セットアップと yarn e2e run run を実行し、subscriptions.spec.ts、organization_create.spec.ts、organization_page.spec.ts で報告されている失敗に焦点を当てます。開発環境での結果を yarn build; NODE_ENV=test yarn start と比較します。完了とは、影響を受ける end-to-end テストが開発環境に対して成功することを意味します。

索引モデルが issue の本文から書いたものです。

説明

🐛 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

主要言語
TypeScript
スター
1.8k
フォーク
226
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

graphile/starter のほかの issue

graphile/starter の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。