Add: エンジンモックのドキュメントを追加 #1215
test.yml
on: push
Annotations
15 errors, 5 warnings, and 7 notices
lint:
src/mock/engineMock/characterResourceMock.ts#L103
The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<SpeakerInfo>'?
|
lint
Process completed with exit code 2.
|
../tests/unit/store/audio.spec.ts > GENERATE_AUDIO_ITEM > 何も指定しない場合は空のAudioItemを作る:
tests/unit/store/utils.ts#L81
TypeError: Cannot read properties of undefined (reading 'map')
❯ ../tests/unit/store/utils.ts:81:40
❯ Module.initializeStateAsSoftwareStarted ../tests/unit/store/utils.ts:74:54
❯ ../tests/unit/store/audio.spec.ts:23:5
|
../tests/unit/store/audio.spec.ts > GENERATE_AUDIO_ITEM > テキストを指定するとtextに値が入る:
tests/unit/store/utils.ts#L81
TypeError: Cannot read properties of undefined (reading 'map')
❯ ../tests/unit/store/utils.ts:81:40
❯ Module.initializeStateAsSoftwareStarted ../tests/unit/store/utils.ts:74:54
❯ ../tests/unit/store/audio.spec.ts:23:5
|
../tests/unit/store/audio.spec.ts > GENERATE_AUDIO_ITEM > baseAudioItemを指定するとパラメータを引き継ぐ:
tests/unit/store/utils.ts#L81
TypeError: Cannot read properties of undefined (reading 'map')
❯ ../tests/unit/store/utils.ts:81:40
❯ Module.initializeStateAsSoftwareStarted ../tests/unit/store/utils.ts:74:54
❯ ../tests/unit/store/audio.spec.ts:23:5
|
../tests/unit/mock/engineMock/index.spec.ts > createOpenAPIEngineMock > versionVersionGet:
tests/unit/mock/engineMock/index.spec.ts#L9
Error: Snapshot `createOpenAPIEngineMock > versionVersionGet 1` mismatched
❯ ../tests/unit/mock/engineMock/index.spec.ts:9:22
|
../tests/unit/mock/engineMock/index.spec.ts > createOpenAPIEngineMock > singFrameAudioQuerySingFrameAudioQueryPost:
tests/unit/mock/engineMock/index.spec.ts#L45
Error: Snapshot `createOpenAPIEngineMock > singFrameAudioQuerySingFrameAudioQueryPost 1` mismatched
❯ ../tests/unit/mock/engineMock/index.spec.ts:45:22
|
../tests/unit/mock/engineMock/index.spec.ts > createOpenAPIEngineMock > frameSynthesisFrameSynthesisPost:
tests/unit/mock/engineMock/index.spec.ts#L66
Error: Snapshot `createOpenAPIEngineMock > frameSynthesisFrameSynthesisPost 1` mismatched
❯ ../tests/unit/mock/engineMock/index.spec.ts:66:54
|
unit-test
Process completed with exit code 1.
|
build-test:
src/mock/engineMock/characterResourceMock.ts#L103
The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<SpeakerInfo>'?
|
build-test
Process completed with exit code 2.
|
[browser] › browser\スクリーンショット.spec.ts:6:5 › メイン画面の表示:
tests\e2e\browser\スクリーンショット.spec.ts#L24
1) [browser] › browser\スクリーンショット.spec.ts:6:5 › メイン画面の表示 ──────────────────────────────────────────
Error: Screenshot comparison failed:
35209 pixels (ratio 0.06 of all image pixels) are different.
Expected: D:\a\voicevox\voicevox\tests\e2e\browser\スクリーンショット.spec.ts-snapshots\トーク画面-browser-win32.png
Received: D:\a\voicevox\voicevox\test-results\スクリーンショット-メイン画面の表示-browser\トーク画面-actual.png
Diff: D:\a\voicevox\voicevox\test-results\スクリーンショット-メイン画面の表示-browser\トーク画面-diff.png
Call log:
- expect.toHaveScreenshot(トーク画面.png) with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 35209 pixels (ratio 0.06 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- captured a stable screenshot
- 35209 pixels (ratio 0.06 of all image pixels) are different.
22 | }
23 | }
> 24 | await expect(page).toHaveScreenshot("トーク画面.png");
| ^
25 |
26 | // ソング画面の表示
27 | await page.getByText("ソング").click();
at D:\a\voicevox\voicevox\tests\e2e\browser\スクリーンショット.spec.ts:24:22
|
[browser] › browser\スクリーンショット.spec.ts:6:5 › メイン画面の表示:
tests\e2e\browser\スクリーンショット.spec.ts#L24
1) [browser] › browser\スクリーンショット.spec.ts:6:5 › メイン画面の表示 ──────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
35209 pixels (ratio 0.06 of all image pixels) are different.
Expected: D:\a\voicevox\voicevox\tests\e2e\browser\スクリーンショット.spec.ts-snapshots\トーク画面-browser-win32.png
Received: D:\a\voicevox\voicevox\test-results\スクリーンショット-メイン画面の表示-browser-retry1\トーク画面-actual.png
Diff: D:\a\voicevox\voicevox\test-results\スクリーンショット-メイン画面の表示-browser-retry1\トーク画面-diff.png
Call log:
- expect.toHaveScreenshot(トーク画面.png) with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 35209 pixels (ratio 0.06 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- captured a stable screenshot
- 35209 pixels (ratio 0.06 of all image pixels) are different.
22 | }
23 | }
> 24 | await expect(page).toHaveScreenshot("トーク画面.png");
| ^
25 |
26 | // ソング画面の表示
27 | await page.getByText("ソング").click();
at D:\a\voicevox\voicevox\tests\e2e\browser\スクリーンショット.spec.ts:24:22
|
[browser] › browser\スクリーンショット.spec.ts:6:5 › メイン画面の表示:
tests\e2e\browser\スクリーンショット.spec.ts#L24
1) [browser] › browser\スクリーンショット.spec.ts:6:5 › メイン画面の表示 ──────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
35209 pixels (ratio 0.06 of all image pixels) are different.
Expected: D:\a\voicevox\voicevox\tests\e2e\browser\スクリーンショット.spec.ts-snapshots\トーク画面-browser-win32.png
Received: D:\a\voicevox\voicevox\test-results\スクリーンショット-メイン画面の表示-browser-retry2\トーク画面-actual.png
Diff: D:\a\voicevox\voicevox\test-results\スクリーンショット-メイン画面の表示-browser-retry2\トーク画面-diff.png
Call log:
- expect.toHaveScreenshot(トーク画面.png) with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 35209 pixels (ratio 0.06 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- captured a stable screenshot
- 35209 pixels (ratio 0.06 of all image pixels) are different.
22 | }
23 | }
> 24 | await expect(page).toHaveScreenshot("トーク画面.png");
| ^
25 |
26 | // ソング画面の表示
27 | await page.getByText("ソング").click();
at D:\a\voicevox\voicevox\tests\e2e\browser\スクリーンショット.spec.ts:24:22
|
e2e-test (windows-latest)
Process completed with exit code 1.
|
Slow Test:
[browser] › browser/アップデート通知ダイアログ.spec.ts#L1
[browser] › browser/アップデート通知ダイアログ.spec.ts took 19.6s
|
Slow Test:
[browser] › browser/複数選択/選択.spec.ts#L1
[browser] › browser/複数選択/選択.spec.ts took 19.4s
|
Slow Test:
[browser] › browser/song/ソング.spec.ts#L1
[browser] › browser/song/ソング.spec.ts took 18.5s
|
Slow Test:
[electron] › electron/example.spec.ts#L1
[electron] › electron/example.spec.ts took 15.2s
|
Slow Test:
[browser] › browser\アップデート通知ダイアログ.spec.ts#L1
[browser] › browser\アップデート通知ダイアログ.spec.ts took 18.1s
|
🎭 Playwright Run Summary
2 skipped
24 passed (1.8m)
|
🎭 Playwright Run Summary
70 skipped
|
🎭 Playwright Run Summary
1 passed (16.5s)
|
🎭 Playwright Run Summary
4 skipped
22 passed (2.6m)
|
🎭 Playwright Run Summary
1 passed (18.2s)
|
🎭 Playwright Run Summary
70 skipped
|
🎭 Playwright Run Summary
1 failed
[browser] › browser\スクリーンショット.spec.ts:6:5 › メイン画面の表示 ───────────────────────────────────────────
25 passed (2.5m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report-windows-latest
|
13.9 MB |
|