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

test: ソングのスクショも追加 #2280

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading