-
Notifications
You must be signed in to change notification settings - Fork 350
アクセントの読み変更時のE2Eテストを追加 #2420
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
アクセントの読み変更時のE2Eテストを追加 #2420
Conversation
tests/e2e/browser/音声パラメータ.spec.ts
Outdated
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.
テストを追加したことにより、この処理がないと既存の通っていたテストが通らなくなる。
理由は不明。
1) [browser] › browser/音声パラメータ.spec.ts:12:5 › 音声パラメータ引き継ぎの設定 ─────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "1.00"
Received: "0.50"
7 | async function validateValue(locator: Locator, expectedValue: string) {
8 | const value = await locator.evaluate((e: HTMLInputElement) => e.value);
> 9 | expect(value).toBe(expectedValue);
| ^
10 | }
11 |
12 | test("音声パラメータ引き継ぎの設定", async ({ page }) => {
at validateValue (/Users/jdkfx/Desktop/workspace/voicevox/tests/e2e/browser/音声パラメータ.spec.ts:9:17)
at /Users/jdkfx/Desktop/workspace/voicevox/tests/e2e/browser/音声パラメータ.spec.ts:37:3
attachment #1: video (video/webm) ──────────────────────────────────────────────────────────────
test-results/音声パラメータ-音声パラメータ引き継ぎの設定-browser/video.webm
────────────────────────────────────────────────────────────────────────────────────────────────
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.
flakyになりやすいから、waitForTimeoutではない方法を使った方がいいかも。
https://zenn.dev/cureapp/articles/73cd66a37cc9e8
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.
flakyになりやすいから、waitForTimeoutではない方法を使った方がいいかも。
同感です!
ちょっとe2eにまだ慣れてないときのコードが多くwaitForTimeoutが点在していますが本当は使わないのがベストなはず。
ここの原因は・・・・ちょっと不正確かもですが、そもそもここはエンジンへのリクエストを送信して返ってくるまで待機してるかもですね・・・。
(テストを追加したことによりテストが並列実行されてエンジンが一瞬詰まる、みたいなのとかが起こる)
ちょっと良い解決策が思いつかないので、これ系はまだしばらくwaitForTimeoutのまま行かないとかもです 😇
|
🚀 プレビュー用ページを作成しました 🚀 更新時点でのコミットハッシュ: |
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.
テスト追加ありがとうございます!!!
かなり良い感じだと思います!!!
|
あっ .mora-tableを見ていた別のテストが落ちてますね!!! |
|
@Hiroshiba 今ほかのPRの対応中でした!こちらも後で直すつもりです! |
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!!
すみません🙇 修正ありがとうございました!!!
内容
関連 Issue
ref #1462
スクリーンショット・動画など
その他