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: 設定ダイアログのスクリーンショットテスト追加 #1953

Conversation

Hiroshiba
Copy link
Member

内容

設定ダイアログのスクリーンショットテストを追加しました。
デザインが変わった時にその差を確認したり、間違って変わっちゃったりするのを防げたりすると思います。

ちょっとスクロールしてスクリーンショットを撮影して、というのを繰り返します。

関連 Issue

その他

SettingDialog.vueでコピペされてる部分をv-forにするタスクをやろうと思っていて、その前段階として実装しました。

@Hiroshiba Hiroshiba requested a review from a team as a code owner March 23, 2024 14:48
@Hiroshiba Hiroshiba requested review from y-chan and removed request for a team March 23, 2024 14:48
Comment on lines -11 to +12
const moveToFilenameDialog = async (page: Page, optionDialog: Locator) => {
await optionDialog.getByRole("button", { name: "編集する" }).click();
const moveToFilenameDialog = async (page: Page, settingDialog: Locator) => {
await settingDialog.getByRole("button", { name: "編集する" }).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.

実装の方では「settingDialog」だったので、名称をそちらに合わせるようにしました。

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
Member Author

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sevenc-nanashi もしよかったらレビューお願いできると・・・!

@Hiroshiba
Copy link
Member Author

fullPageを使わないようにリバートしました!

@Hiroshiba
Copy link
Member Author

@sevenc-nanashi もしよかったら再レビューお願いします・・・!

特に問題なさそうだったらマージしちゃおうと思います!

Copy link
Member

@sevenc-nanashi sevenc-nanashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大丈夫だと思います。

@Hiroshiba
Copy link
Member Author

レビューありがとうございます!
マージします!

@Hiroshiba Hiroshiba merged commit d5577c1 into VOICEVOX:main May 25, 2024
9 checks passed
@Hiroshiba Hiroshiba deleted the 設定ダイアログのスクリーンショットテスト branch May 25, 2024 14:26
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.

None yet

2 participants