Skip to content

Commit

Permalink
test: ソングのスクショも追加 (#2280)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Hiroshiba and github-actions[bot] authored Oct 19, 2024
1 parent 9adb252 commit 3a1f664
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/e2e/browser/スクリーンショット.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ test("メイン画面の表示", async ({ page }) => {
test.skip(process.platform !== "win32", "Windows以外のためスキップします");
await navigateToMain(page);

// トーク画面の表示
while (true) {
await page.locator(".audio-cell:nth-child(1) .q-field").click();
await page.locator(".audio-cell:nth-child(1) .q-field").click(); // 一番上のテキスト欄をクリックする
await page.waitForTimeout(100);
// ローディングが消えるまで待つ
if (
(await page
.locator(".character-portrait-wrapper .character-name")
Expand All @@ -139,5 +141,10 @@ test("メイン画面の表示", async ({ page }) => {
break;
}
}
await expect(page).toHaveScreenshot("メイン画面.png");
await expect(page).toHaveScreenshot("トーク画面.png");

// ソング画面の表示
await page.getByText("ソング").click();
await expect(page.getByText("ソング")).toBeEnabled(); // 無効化が解除されるまで待つ
await expect(page).toHaveScreenshot("ソング画面.png");
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3a1f664

Please sign in to comment.