-
Notifications
You must be signed in to change notification settings - Fork 310
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: 設定ダイアログのスクリーンショットテスト追加 #1953
Merged
The head ref may contain hidden characters: "\u8A2D\u5B9A\u30C0\u30A4\u30A2\u30ED\u30B0\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u30C6\u30B9\u30C8"
Merged
Changes from 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
054f0a8
Test: 設定ダイアログのスクリーンショットテスト
Hiroshiba fada5f0
[update snapshots]
Hiroshiba ffa8620
(スナップショットを更新)
github-actions[bot] 25dadfe
テストのための空コミット
Hiroshiba c7ffc3e
Merge branch '設定ダイアログのスクリーンショットテスト' of github.com:Hiroshiba/voicevox …
Hiroshiba efb475d
fullPage [update snapshots]
Hiroshiba f8317dc
add .png [update snapshots]
Hiroshiba 62f51a9
(スナップショットを更新)
github-actions[bot] 50b6a7c
Revert "(スナップショットを更新)"
Hiroshiba 2354f2f
Revert "add .png [update snapshots]"
Hiroshiba 0f3df25
Revert "fullPage [update snapshots]"
Hiroshiba 72ad679
Merge remote-tracking branch 'upstream/main' into 設定ダイアログのスクリーンショットテスト
Hiroshiba 1b21aa8
Merge branch 'main' into 設定ダイアログのスクリーンショットテスト
Hiroshiba f4ae4a6
[update snapshots]
Hiroshiba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { test, expect } from "@playwright/test"; | ||
import { gotoHome, navigateToSettingDialog } from "../../navigators"; | ||
|
||
test.beforeEach(gotoHome); | ||
|
||
test("スクリーンショット", async ({ page }) => { | ||
test.skip(process.platform !== "win32", "Windows以外のためスキップします"); | ||
|
||
await navigateToSettingDialog(page); | ||
await page.waitForTimeout(500); | ||
|
||
// スクリーンショット撮影とスクロールを繰り返す | ||
for (let i = 0; i < 5; i++) { | ||
await expect(page).toHaveScreenshot(`スクリーンショット_${i}.png`); | ||
await page.mouse.wheel(0, 500); | ||
Hiroshiba marked this conversation as resolved.
Show resolved
Hide resolved
|
||
await page.waitForTimeout(300); | ||
} | ||
}); |
Binary file added
BIN
+53.7 KB
tests/e2e/browser/設定ダイアログ/設定ダイアログ.spec.ts-snapshots/スクリーンショット-0-browser-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+54.1 KB
tests/e2e/browser/設定ダイアログ/設定ダイアログ.spec.ts-snapshots/スクリーンショット-1-browser-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+52.4 KB
tests/e2e/browser/設定ダイアログ/設定ダイアログ.spec.ts-snapshots/スクリーンショット-2-browser-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+57 KB
tests/e2e/browser/設定ダイアログ/設定ダイアログ.spec.ts-snapshots/スクリーンショット-3-browser-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+57 KB
tests/e2e/browser/設定ダイアログ/設定ダイアログ.spec.ts-snapshots/スクリーンショット-4-browser-win32.png
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 後で設定パラメータが追加されることも考えて、スクリーンショットはちょっとだけ長めに撮影しています。 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
実装の方では「settingDialog」だったので、名称をそちらに合わせるようにしました。