Skip to content

Conversation

Hiroshiba
Copy link
Member

@Hiroshiba Hiroshiba commented Feb 25, 2025

内容

playwrightテストの共通部分をtest.stepにし、テスト結果を少しわかりやすくします。

関連 Issue

から派生

スクリーンショット・動画など

stepにしておくとこんな感じでまとめてくれる(右の「ソング画面に移動」みたいに)ので、どのタイミングで落ちたのかわかりやすくなるから多用していきたい気持ち。

image

その他

@Hiroshiba Hiroshiba requested a review from a team as a code owner February 25, 2025 01:15
@Hiroshiba Hiroshiba requested review from Copilot and removed request for a team February 25, 2025 01:15
@@ -0,0 +1,42 @@
import { test, expect } from "@playwright/test";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このファイルは完全に移動のみです。

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

tests/e2e/navigators.ts:63

  • [nitpick] For consistency with other navigation functions that specify a return type (e.g. navigateToHelpDialog and navigateToSettingDialog), consider adding an explicit return type annotation to navigateToSong.
export async function navigateToSong(page: Page) {

Comment on lines +69 to +71
// 見やすいようにスナップを1/8に変更
await page.getByLabel("スナップ").click();
await page.getByRole("option", { name: "1/8", exact: true }).click();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あ、これはちょっとテストのやりやすさのために追加しました。

@voicevox-preview-pages
Copy link

voicevox-preview-pages bot commented Feb 25, 2025

🚀 プレビュー用ページを作成しました 🚀

更新時点でのコミットハッシュ:7cc9633

@@ -58,40 +52,3 @@ test("ノートを追加・削除できる", async ({ page }) => {
await page.keyboard.press("Delete");
expect(await getCurrentNoteCount()).toBe(0);
});

test("ダブルクリックで歌詞を編集できる", async ({ page }) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このテストの変更は完全にtests/e2e/browser/song/歌詞.spec.tsに移動しただけです

@Hiroshiba
Copy link
Member Author

@sevenc-nanashi
すみませんまたレビューお願いできると!!

共通部分のリファクタリングとして、playwright.test.stepを多用するのはどうかとおもって実装してみたのですが、その点どうかなと・・・!
(コードの移動は問題ないはず)

@Hiroshiba Hiroshiba requested a review from sevenc-nanashi March 1, 2025 13:12
Copy link
Member

@sevenc-nanashi sevenc-nanashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

特に問題なさそう。

@Hiroshiba
Copy link
Member Author

ありがとうございます! マージします!

@Hiroshiba Hiroshiba enabled auto-merge March 1, 2025 13:16
@Hiroshiba Hiroshiba added this pull request to the merge queue Mar 1, 2025
Merged via the queue into VOICEVOX:main with commit 2674530 Mar 1, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants