-
Notifications
You must be signed in to change notification settings - Fork 335
refactor(test): playwrightテストの共通部分を少しリファクタリング、歌詞編集テストの移動 #2562
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
The head ref may contain hidden characters: "refactor(test)--playwright\u30C6\u30B9\u30C8\u306E\u5171\u901A\u90E8\u5206\u3092\u5C11\u3057\u30EA\u30D5\u30A1\u30AF\u30BF\u30EA\u30F3\u30B0\u3001\u6B4C\u8A5E\u7DE8\u96C6\u30C6\u30B9\u30C8\u306E\u79FB\u52D5"
Conversation
@@ -0,0 +1,42 @@ | |||
import { test, expect } from "@playwright/test"; |
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.
このファイルは完全に移動のみです。
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.
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) {
// 見やすいようにスナップを1/8に変更 | ||
await page.getByLabel("スナップ").click(); | ||
await page.getByRole("option", { name: "1/8", exact: true }).click(); |
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.
あ、これはちょっとテストのやりやすさのために追加しました。
🚀 プレビュー用ページを作成しました 🚀 更新時点でのコミットハッシュ: |
@@ -58,40 +52,3 @@ test("ノートを追加・削除できる", async ({ page }) => { | |||
await page.keyboard.press("Delete"); | |||
expect(await getCurrentNoteCount()).toBe(0); | |||
}); | |||
|
|||
test("ダブルクリックで歌詞を編集できる", async ({ page }) => { |
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.
このテストの変更は完全にtests/e2e/browser/song/歌詞.spec.ts
に移動しただけです
@sevenc-nanashi 共通部分のリファクタリングとして、 |
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.
特に問題なさそう。
ありがとうございます! マージします! |
内容
playwrightテストの共通部分をtest.stepにし、テスト結果を少しわかりやすくします。
関連 Issue
から派生
スクリーンショット・動画など
stepにしておくとこんな感じでまとめてくれる(右の「ソング画面に移動」みたいに)ので、どのタイミングで落ちたのかわかりやすくなるから多用していきたい気持ち。
その他