Skip to content
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

refactor(test): playwrightテストの共通部分を少しリファクタリング、歌詞編集テストの移動 #2562

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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.

1 participant