Commit Graph

23 Commits

Author SHA1 Message Date
syuilo fcb6e0adb9 chore(test): data属性がclassになっているのを修正 2023-03-09 19:59:11 +09:00
RyotaK 116dd097bd
fix: 登録フォームにおける競合状態を修正 (#10267)
* fix: 登録フォームにおける競合状態を修正

* エラーを修正
2023-03-08 16:32:13 +09:00
RyotaK 6feead5185
fix: 登録時のフォームにおいて送信できる条件を修正 (#10238)
* fix: 登録時のフォームにおいて送信できる条件を修正

* テストを追加
2023-03-07 16:07:13 +09:00
Kagami Sascha Rosylight 61215e50ff
test(backend): APIテストの復活 (#10163)
* Revert 1c5291f818

* APIテストの復活

* apiテストの移行

* moduleNameMapper修正

* simpleGetでthrowしないように

status確認しているので要らない

* longer timeout

* ローカルでは問題ないのになんで

* case sensitive

* Run Nest instance within the current process

* Skip some setIntervals

* wait for 5 seconds

* kill them all!!

* logHeapUsage: true

* detectOpenHandlesがじゃましているらしい

* maxWorkers=1?

* restore drive api tests

* workerIdleMemoryLimit: 500MB

* 1024MiB

* Wait what
2023-03-03 11:13:12 +09:00
Kagami Sascha Rosylight 44058f8b85
enhance(e2e): more resilient version of `visit('/')` (#10128) 2023-03-01 15:32:53 +09:00
Kagami Sascha Rosylight 6d82371449
fix(frontend): read KeyboardEvent.key instead of which/code (#10083) 2023-03-01 15:24:09 +09:00
Kagami Sascha Rosylight 647a018362
fix(backend): return HTTP 404 for any unknown api endpoint paths (#10130)
* fix(backend): return HTTP 400 for any invalid api endpoint paths

* 404
2023-02-27 18:01:43 +09:00
Masaya Suzuki 94004b7a3f
Fix widget tests (#9591) 2023-01-15 20:55:09 +09:00
Masaya Suzuki 9ee1b5f30a
Fix widget test (#9565) 2023-01-15 08:34:26 +09:00
Masaya Suzuki 170cfc6a0e
E2Eテスト "first widget should be removed" 修正 (#9556)
* Fix e2e test "first widget should be removed"

* E2Eテスト用クラス追加

* empty commit
2023-01-14 19:25:20 +09:00
Kagami Sascha Rosylight 72e7909911
fix(cypress): pass `{}` as a parameter for `/api/reset-db` (#9355) 2022-12-19 15:15:28 +09:00
syuilo eaf6ddd474 update cypress 2022-06-11 15:53:45 +09:00
Andreas Nedbal d3e242a7f2
Extract commonly used test logic to commands (#8767)
* meta(tests): enable workflows to run in branch

* feat(tests): move commonly used logic to Cypress commands

* chore(tests): replace more code with commands

* meta(tests): disable workflows to run in branch
2022-05-31 17:57:01 +09:00
Andreas Nedbal 708fba989a
feat(tests): add e2e tests for widgets (#8735)
* test(e2e): add baseline for widget tests

* chore(repo): enable test running in branch

* fix(e2e): set viewport for widget tests

* fix(client): add widget identifier classes to widgets

* test(e2e): add memo widget test

* fix(tests): force select value

* fix(tests): force button press for widget addition

* fix(tests): invoke select value differently

* fix(tests): adjust widget submit

* fix(tests): don't explicitly navigate for widget test

* fix(tests): click label to hide select popup

* fix(tests): just click modal background

* fix(tests): adjust modal background selector

* fix(tests): click all modal backgrounds

* feat(e2e): add test for adding timeline widget

* fix(client): add more widget identifier classes

* feat(tests): add method abstraction for test cases

* fix(tests): force-click overlays

* fix(tests): force widget button press

* fix(tests): remove timeout from final widget check

* feat(tests): add widget removal test case

* fix(client): use mk instead of msky as class prefix

* fix(tests): check widgets for existence rather than visibility

* chore(meta): don't run tests for specific feature branch
2022-05-28 14:28:12 +09:00
iwata 22bb1a1793
test: e2eテストがCIで失敗していた問題をいくつか修正 (#8642)
* test: indexeddbをテスト毎に初期化するように

* fix: metaが無いときにfetch-metaを同時に呼ぶと死ぬことがある問題を修正

* test: ログイン後のクライアント側処理を待たずにリロードされてログイン出来ないことがあったのを修正
2022-05-14 15:16:45 +09:00
syuilo 6eeb7a92b8 add todo 2022-01-29 02:57:10 +09:00
tamaina e1d69e236f
enhance: e2eテストをできるだけ改良してみた (#8159)
* update docker image?

* 続

* serial run delete from "${table}" cascade

* use cypress official github action

* refuse install by cypress action

* clean up

* use wait?

* use more wait?

* Revert "use more wait?"

This reverts commit 18d0fcae9c7d8f98a4cafb4a846a031ece57350c.

* Revert "use wait?"

This reverts commit 5aa8feec9cdc3e2f79e566249f0a0eff6c0df6a0.

* fix

* test

* test

* log?

* 握りつぶしてみる

* clean up

* env?

* clean up?

* disable video

* add comment

* remove test

* 成功?

* test browser

* nodeインストール無効化

* node16.13.0-chrome95-ff94

* node.js復活

* ?

* ちょっと戻してみる

* chrome?

* cross browser test2

* --shm-size=2g

* artifact?

* misskey.local?

* firefoxはあきらめる

* not headless?

* oops

* fix

* ??

* test1

* if?

* fail-fast: false

* headless: false

* easy error ignoreing describe

* エラーの解消
とちょっとリファクター

* add browser name to artifact

* Install mplayer for FireFox

* no wait?

* タイムアウトを甘くしてみる

* firefoxをあきらめる(n回目)

* remove timeout setting

* wait復活

* Update basic.js

* Update index.js

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2022-01-21 16:43:56 +09:00
syuilo 4f43f019e0 fix(test): ignore ResizeObserver error 2021-12-29 05:09:26 +09:00
syuilo fa0814f939 fix e2e test 2021-10-28 22:00:38 +09:00
syuilo 8a0a46b1c9 test: improve e2e test 2021-09-19 14:27:16 +09:00
syuilo 186163ec3f refactor 2021-09-19 02:58:25 +09:00
syuilo 54e0a7f8a8
feat: 凍結された場合のダイアログを実装 (#7811)
* feat: 凍結された場合のダイアログを実装

* Update CHANGELOG.md

* Update basic.js

* improve error handling

* cypressなんもわからん

* Update basic.js
2021-09-19 02:23:12 +09:00
syuilo b81ff340b1 Introduce e2e test 2021-08-12 19:05:07 +09:00