-
Notifications
You must be signed in to change notification settings - Fork 346
test: プロジェクト読み込みのテストを追加 #2732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: プロジェクト読み込みのテストを追加 #2732
Conversation
|
🚀 プレビュー用ページを作成しました 🚀 更新時点でのコミットハッシュ: |
|
@codex このプルリクエストをレビューしてください |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codex Review: Here are some suggestions.
Reply with @codex fix comments to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
| @@ -0,0 +1 @@ | |||
| {"appVersion":"9999.9999.9999","talk":{"audioKeys":["b52d172e-44b8-4d2e-b184-cda49015ccf7","0bfa1591-8e39-400d-a1fa-90d5f2202372","4a9b9b66-7a5b-415e-9730-7cbcc02ed5e2"],"audioItems":{"b52d172e-44b8-4d2e-b184-cda49015ccf7":{"text":"hoge","voice":{"engineId":"074fc39e-678b-4c13-8916-ffca8d505d1d","speakerId":"7ffcb7ce-00ec-4bdc-82cd-45a8889e43ff","styleId":0},"query":{"accentPhrases":[],"speedScale":1,"pitchScale":0,"intonationScale":1,"volumeScale":1,"prePhonemeLength":0.1,"postPhonemeLength":0.1,"pauseLength":null,"pauseLengthScale":1,"outputSamplingRate":24000,"outputStereo":false},"presetKey":"2e2dc222-3218-41bf-b68c-5a863d9ddd53"},"0bfa1591-8e39-400d-a1fa-90d5f2202372":{"text":"fuga","voice":{"engineId":"074fc39e-678b-4c13-8916-ffca8d505d1d","speakerId":"388f246b-8c41-4ac1-8e2d-5d79f3ff56d9","styleId":1},"query":{"accentPhrases":[],"speedScale":1,"pitchScale":0,"intonationScale":1,"volumeScale":1,"prePhonemeLength":0.1,"postPhonemeLength":0.1,"pauseLength":null,"pauseLengthScale":1,"outputSamplingRate":24000,"outputStereo":false},"presetKey":"ca0ba6ba-558a-4b46-a201-3a266a4da90e"},"4a9b9b66-7a5b-415e-9730-7cbcc02ed5e2":{"text":"piyo","voice":{"engineId":"074fc39e-678b-4c13-8916-ffca8d505d1d","speakerId":"35b2c544-660e-401e-b503-0e14c635303a","styleId":8},"query":{"accentPhrases":[],"speedScale":1,"pitchScale":0,"intonationScale":1,"volumeScale":1,"prePhonemeLength":0.1,"postPhonemeLength":0.1,"pauseLength":null,"pauseLengthScale":1,"outputSamplingRate":24000,"outputStereo":false},"presetKey":"56d5633e-b015-4403-baea-9338a2789db5"}}},"song":{"tpqn":480,"tempos":[{"position":0,"bpm":120}],"timeSignatures":[{"measureNumber":1,"beats":4,"beatType":4}],"tracks":{"7dc46a6b-3429-45e8-9c40-160c18516238":{"name":"無名トラック","keyRangeAdjustment":0,"volumeRangeAdjustment":0,"notes":[],"pitchEditData":[],"phonemeTimingEditData":{},"solo":false,"mute":false,"gain":1,"pan":0}},"trackOrder":["7dc46a6b-3429-45e8-9c40-160c18516238"]}} | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このファイル、プロジェクトファイルのマイグレーションをしてくれないから、データ構造変わるたびに更新する必要があってしんどいかも?
空のプロジェクトファイルを作る関数を呼ぶと良いかも。
可能ならjson stringにする関数も共通化したいけど、Vuex storeにしかないならまずそれを切り出す必要があるかも。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここも
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここはappVersionさえ読めればなんでもいいはずですね。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、なるほどです。
んじゃappVersionだけがキーなプロジェクトファイルにすると良さそう?
|
ちょっと色々触ってたんですが、多分プロジェクトファイルを作成して保存してから読み込むみたいな流れの方が楽な気がしてきたのでいったんDraftにします。 |
|
保存->読み込みにしました。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
プロジェクト読み込みに関するE2Eテストを追加し、関連する識別名の変更を行うPRです。
- E2Eテストで過去・未来のプロジェクトファイル読み込みとプロジェクト保存・再読み込みのテストを追加
showOldProjectWarningDialogからshowNewerVersionWarningDialogへの識別名変更とメッセージ更新- テスト用ユーティリティ関数の共通化とファイル操作モック関数の追加
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/domain/project.spec.ts | 未来バージョン警告ダイアログ関数名とテスト期待値を新しい識別名に更新 |
| tests/e2e/browser/プロジェクト.spec.ts | プロジェクト読み込み・保存・未来バージョン警告のE2Eテストを新規追加 |
| tests/e2e/browser/テキスト追加・削除・入れ替え.spec.ts | 重複するヘルパー関数を削除し、共通のutils関数を使用するよう変更 |
| tests/e2e/browser/vvproj/simple.vvproj | テスト用の基本プロジェクトファイルを追加 |
| tests/e2e/browser/vvproj/future.vvproj | 未来バージョンテスト用のプロジェクトファイルを追加 |
| tests/e2e/browser/utils.ts | プロジェクト操作とAudioCell操作の共通ユーティリティ関数を新規追加 |
| tests/e2e/browser/mockUtility.ts | ファイル読み込みとファイル選択ダイアログのモック関数を追加 |
| src/store/project/index.ts | 警告ダイアログ関数名とタイトルメッセージを更新 |
| src/infrastructures/projectFile/migration.ts | 警告ダイアログ関数名と戻り値の識別名を更新 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
@codex このプルリクエストを日本語でレビューしてください。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codex Review: Here are some suggestions.
Reply with @codex fix comments to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fillAudioCellとかをutilsに再配置するの良いですね!!
ほぼLGTMです!!
細かいとこだけ・・・!
Hiroshiba
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
いろいろ書いてますがLGTM!!
test.stepで区切っていくのめっちゃいいですねぇ。
やりたいことがわかる。
Co-authored-by: Hiroshiba <[email protected]>
Co-authored-by: Hiroshiba <[email protected]>
|
マージします。 |
内容
タイトル通りです。
また、一部細かい調整(内部で使われている識別名の変更など)も行っています。
関連 Issue
スクリーンショット・動画など
(なし)
その他