diff --git "a/tests/e2e/browser/\343\202\255\343\203\243\343\203\251\343\202\257\343\202\277\343\203\274\344\270\246\343\201\263\346\233\277\343\201\210\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260.spec.ts" "b/tests/e2e/browser/\343\202\255\343\203\243\343\203\251\343\202\257\343\202\277\343\203\274\344\270\246\343\201\263\346\233\277\343\201\210\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260.spec.ts" index 228ea6af..123421fd 100644 --- "a/tests/e2e/browser/\343\202\255\343\203\243\343\203\251\343\202\257\343\202\277\343\203\274\344\270\246\343\201\263\346\233\277\343\201\210\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260.spec.ts" +++ "b/tests/e2e/browser/\343\202\255\343\203\243\343\203\251\343\202\257\343\202\277\343\203\274\344\270\246\343\201\263\346\233\277\343\201\210\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260.spec.ts" @@ -4,13 +4,15 @@ import { gotoHome, navigateToMain } from "../navigators"; test.beforeEach(gotoHome); -test("「設定」→「キャラクター並び替え・視聴」で「キャラクター並び替え・視聴」ページが表示される", async ({ +test("「設定」→「キャラクター並び替え・視聴」で「設定 / キャラクター並び替え・視聴」ページが表示される", async ({ page, }) => { await navigateToMain(page); await page.getByText("設定").click(); await page.waitForTimeout(100); - await page.getByText("話者リスト").click(); + await page.getByText("キャラクター並び替え・試聴").click(); await page.waitForTimeout(100); - await expect(page.getByText("話者リスト")).toBeVisible(); + await expect( + page.getByText("設定 / キャラクター並び替え・試聴"), + ).toBeVisible(); }); diff --git "a/tests/e2e/browser/\343\203\207\343\203\225\343\202\251\343\203\253\343\203\210\343\202\271\343\202\277\343\202\244\343\203\253\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260.spec.ts" "b/tests/e2e/browser/\343\203\207\343\203\225\343\202\251\343\203\253\343\203\210\343\202\271\343\202\277\343\202\244\343\203\253\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260.spec.ts" index ae1fca86..8af7d3ed 100644 --- "a/tests/e2e/browser/\343\203\207\343\203\225\343\202\251\343\203\253\343\203\210\343\202\271\343\202\277\343\202\244\343\203\253\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260.spec.ts" +++ "b/tests/e2e/browser/\343\203\207\343\203\225\343\202\251\343\203\253\343\203\210\343\202\271\343\202\277\343\202\244\343\203\253\343\203\200\343\202\244\343\202\242\343\203\255\343\202\260.spec.ts" @@ -4,11 +4,11 @@ import { gotoHome, navigateToMain } from "../navigators"; test.beforeEach(gotoHome); -test("「設定」→「デフォルトスタイル」で「デフォルトスタイル」ダイアログが表示される", async ({ +test("「設定」→「デフォルトスタイル」で「設定 / デフォルトスタイル・試聴」ダイアログが表示される", async ({ page, }) => { await navigateToMain(page); await page.getByRole("button", { name: "設定" }).click(); await page.getByText("デフォルトスタイル").click(); - await expect(page.getByText("デフォルトスタイル")).toBeVisible(); + await expect(page.getByText("設定 / デフォルトスタイル・試聴")).toBeVisible(); }); diff --git "a/tests/e2e/browser/\343\203\230\343\203\253\343\203\227.spec.ts" "b/tests/e2e/browser/\343\203\230\343\203\253\343\203\227.spec.ts" index 4649859b..8f03b881 100644 --- "a/tests/e2e/browser/\343\203\230\343\203\253\343\203\227.spec.ts" +++ "b/tests/e2e/browser/\343\203\230\343\203\253\343\203\227.spec.ts" @@ -8,32 +8,37 @@ test("「ヘルプ」メニューから各項目をクリックすると、そ page, }) => { await navigateToHelpDialog(page); + // お問い合わせ + await page.getByText("お問い合わせ").click(); + await expect(page.getByText("ヘルプ / お問い合わせ")).toBeVisible(); - // アップデート情報 - await page.getByText("アップデート情報", { exact: true }).click(); - await expect(page.getByText("アップデート情報")).toBeVisible(); + // ソフトウェアの利用規約 + await page.getByText("ソフトウェアの利用規約", { exact: true }).click(); + await expect(page.getByText("ヘルプ / ソフトウェアの利用規約")).toBeVisible(); + + // 音声ライブラリの利用規約 + await page.getByText("音声ライブラリの利用規約", { exact: true }).click(); + await expect( + page.getByText("ヘルプ / 音声ライブラリの利用規約"), + ).toBeVisible(); // 使い方 await page.getByText("使い方", { exact: true }).click(); - await expect(page.getByText("使い方")).toBeVisible(); - - // よくある質問 - await page.getByText("よくある質問 / Q&A", { exact: true }).click(); - await expect(page.getByText("よくある質問 / Q&A")).toBeVisible(); + await expect(page.getByText("ヘルプ / 使い方")).toBeVisible(); - // 音声合成モデルのライセンス - await page.getByText("音声合成モデルのライセンス", { exact: true }).click(); - await expect(page.getByText("音声合成モデルのライセンス")).toBeVisible(); + // 開発コミュニティ + await page.getByText("開発コミュニティ", { exact: true }).click(); + await expect(page.getByText("ヘルプ / 開発コミュニティ")).toBeVisible(); // ライセンス情報 await page.getByText("ライセンス情報", { exact: true }).click(); - await expect(page.getByText("ライセンス情報")).toBeVisible(); + await expect(page.getByText("ヘルプ / ライセンス情報")).toBeVisible(); - // ライセンス情報 - await page.getByText("オープンソースライセンス", { exact: true }).click(); - await expect(page.getByText("オープンソースライセンス")).toBeVisible(); + // アップデート情報 + await page.getByText("アップデート情報", { exact: true }).click(); + await expect(page.getByText("ヘルプ / アップデート情報")).toBeVisible(); - // お問い合わせ - await page.getByText("お問い合わせ").click(); - await expect(page.getByText("お問い合わせ")).toBeVisible(); + // よくあるご質問 + await page.getByText("よくあるご質問", { exact: true }).click(); + await expect(page.getByText("ヘルプ / よくあるご質問")).toBeVisible(); }); diff --git "a/tests/e2e/browser/\350\252\277\346\225\264\347\265\220\346\236\234.spec.ts" "b/tests/e2e/browser/\350\252\277\346\225\264\347\265\220\346\236\234.spec.ts" index 65280d2b..f31e9bf2 100644 --- "a/tests/e2e/browser/\350\252\277\346\225\264\347\265\220\346\236\234.spec.ts" +++ "b/tests/e2e/browser/\350\252\277\346\225\264\347\265\220\346\236\234.spec.ts" @@ -36,7 +36,7 @@ test("実験的機能:調整結果の保持", async ({ page }) => { await page.keyboard.press("Enter"); await page.waitForTimeout(100); - await page.locator(".detail-selector").getByText("イントネーション").click(); + await page.locator(".detail-selector").getByText("イントネーション").click(); await page.waitForTimeout(100); const sliders = await page diff --git a/tests/unit/backend/common/pastConfigs/0.13.json b/tests/unit/backend/common/pastConfigs/0.13.json new file mode 100644 index 00000000..a66de624 --- /dev/null +++ b/tests/unit/backend/common/pastConfigs/0.13.json @@ -0,0 +1,151 @@ +{ + "useGpu": false, + "inheritAudioInfo": true, + "activePointScrollMode": "OFF", + "savingSetting": { + "fileEncoding": "UTF-8", + "fileNamePattern": "", + "fixedExportEnabled": false, + "avoidOverwrite": false, + "fixedExportDir": "", + "exportLab": false, + "exportText": false, + "outputStereo": false, + "outputSamplingRate": 24000, + "audioOutputDevice": "default", + "splitTextWhenPaste": "PERIOD_AND_NEW_LINE" + }, + "hotkeySettings": [ + { + "action": "音声書き出し", + "combination": "Ctrl E" + }, + { + "action": "一つだけ書き出し", + "combination": "E" + }, + { + "action": "音声を繋げて書き出し", + "combination": "" + }, + { + "action": "再生/停止", + "combination": "Space" + }, + { + "action": "連続再生/停止", + "combination": "Shift Space" + }, + { + "action": "アクセント欄を表示", + "combination": "1" + }, + { + "action": "イントネーション欄を表示", + "combination": "2" + }, + { + "action": "長さ欄を表示", + "combination": "3" + }, + { + "action": "テキスト欄を追加", + "combination": "Shift Enter" + }, + { + "action": "テキスト欄を削除", + "combination": "Shift Delete" + }, + { + "action": "テキスト欄からフォーカスを外す", + "combination": "Escape" + }, + { + "action": "テキスト欄にフォーカスを戻す", + "combination": "Enter" + }, + { + "action": "元に戻す", + "combination": "Ctrl Z" + }, + { + "action": "やり直す", + "combination": "Ctrl Y" + }, + { + "action": "新規プロジェクト", + "combination": "Ctrl N" + }, + { + "action": "プロジェクトを名前を付けて保存", + "combination": "Ctrl Shift S" + }, + { + "action": "プロジェクトを上書き保存", + "combination": "Ctrl S" + }, + { + "action": "プロジェクト読み込み", + "combination": "Ctrl O" + }, + { + "action": "テキスト読み込む", + "combination": "" + }, + { + "action": "全体のイントネーションをリセット", + "combination": "Ctrl G" + }, + { + "action": "選択中のアクセント句のイントネーションをリセット", + "combination": "R" + } + ], + "toolbarSetting": [ + "PLAY_CONTINUOUSLY", + "STOP", + "EXPORT_AUDIO_ONE", + "EMPTY", + "UNDO", + "REDO" + ], + "userCharacterOrder": [ + "7ffcb7ce-00ec-4bdc-82cd-45a8889e43ff", + "388f246b-8c41-4ac1-8e2d-5d79f3ff56d9", + "35b2c544-660e-401e-b503-0e14c635303a", + "3474ee95-c274-47f9-aa1a-8322163d96f1", + "b1a81618-b27b-40d2-b0ea-27a9ad408c4b", + "c30dc15a-0992-4f8d-8bb8-ad3b314e6a6f", + "e5020595-5c5d-4e87-b849-270a518d0dcf", + "4f51116a-d9ee-4516-925d-21f183e2afad", + "8eaad775-3119-417e-8cf4-2a10bfd592c8", + "481fb609-6446-4870-9f46-90c4dd623403", + "9f3ee141-26ad-437e-97bd-d22298d02ad2", + "1a17ca16-7ee5-4ea5-b191-2f02ace24d21", + "67d5d8da-acd7-4207-bb10-b5542d3a663b", + "0f56c2f2-644c-49c9-8989-94e11f7129d0", + "044830d2-f23b-44d6-ac0d-b5d733caa900" + ], + "defaultStyleIds": [], + "presets": { + "items": {}, + "keys": [] + }, + "currentTheme": "Default", + "experimentalSetting": { + "enablePreset": false, + "enableInterrogativeUpspeak": false + }, + "acceptRetrieveTelemetry": "Accepted", + "acceptTerms": "Accepted", + "splitTextWhenPaste": "PERIOD_AND_NEW_LINE", + "splitterPosition": {}, + "confirmedTips": { + "tweakableSliderByScroll": false + }, + "__internal__": { + "migrations": { + "version": "0.13.3" + } + } +} \ No newline at end of file diff --git a/tests/unit/backend/common/pastConfigs/index.ts b/tests/unit/backend/common/pastConfigs/index.ts index 6d340a23..1ab48b6f 100644 --- a/tests/unit/backend/common/pastConfigs/index.ts +++ b/tests/unit/backend/common/pastConfigs/index.ts @@ -1,8 +1,10 @@ +import config013 from "./0.13.json"; + const pastConfigs: [ string, Record<string, unknown> & { __internal__: { migrations: { version: string } }; }, -][] = []; +][] = [["0.13.0", config013]]; export default pastConfigs; diff --git a/tests/unit/backend/electron/VvppManager.node.spec.ts b/tests/unit/backend/electron/VvppManager.node.spec.ts index 3b883527..780dd436 100644 --- a/tests/unit/backend/electron/VvppManager.node.spec.ts +++ b/tests/unit/backend/electron/VvppManager.node.spec.ts @@ -9,7 +9,7 @@ const dummyMinimumManifest: MinimumEngineManifestType = { name: "Test Engine", uuid: EngineId("295c656b-b800-449f-aee6-b03e493816d7"), command: "", - port: 10101, + port: 5021, supported_features: {}, }; diff --git a/tests/unit/store/utility.spec.ts b/tests/unit/store/utility.spec.ts index d769fb53..13f0d874 100644 --- a/tests/unit/store/utility.spec.ts +++ b/tests/unit/store/utility.spec.ts @@ -274,7 +274,7 @@ test("getToolbarButtonName", () => { ); expect(getToolbarButtonName("EXPORT_AUDIO_ALL")).toBe("全部書き出し"); expect(getToolbarButtonName("EXPORT_AUDIO_CONNECT_ALL")).toBe( - "音声をつなげて書き出し", + "音声を繋げて書き出し", ); expect(getToolbarButtonName("存在しないタグ" as ToolbarButtonTagType)).toBe( undefined,