forked from VOICEVOX/voicevox
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
22.11.0 | ||
20 |
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,40 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
import { gotoHome, navigateToMain } from "../navigators"; | ||
import { getQuasarMenu } from "../locators"; | ||
|
||
test.beforeEach(gotoHome); | ||
|
||
test.describe("音声書き出し", () => { | ||
test.beforeEach(async ({ page }) => { | ||
// テキスト欄を適当に3行ほど埋める | ||
await navigateToMain(page); | ||
|
||
const accentPhrase = page.locator(".accent-phrase"); | ||
|
||
await page.getByRole("textbox", { name: "1行目" }).click(); | ||
await page.getByRole("textbox", { name: "1行目" }).fill("1行目"); | ||
await page.getByRole("textbox", { name: "1行目" }).press("Enter"); | ||
await expect(accentPhrase).not.toHaveCount(0); | ||
|
||
await page.getByRole("button").filter({ hasText: "add" }).click(); | ||
await page.getByRole("textbox", { name: "2行目" }).click(); | ||
await page.getByRole("textbox", { name: "2行目" }).fill("2行目"); | ||
await page.getByRole("textbox", { name: "2行目" }).press("Enter"); | ||
await expect(accentPhrase).not.toHaveCount(0); | ||
|
||
await page.getByRole("button").filter({ hasText: "add" }).click(); | ||
await page.getByRole("textbox", { name: "3行目" }).click(); | ||
await page.getByRole("textbox", { name: "3行目" }).fill("3行目"); | ||
await page.getByRole("textbox", { name: "3行目" }).press("Enter"); | ||
await expect(accentPhrase).not.toHaveCount(0); | ||
}); | ||
|
||
test("選択中の音声を書き出し", async ({ page }) => { | ||
await page.getByRole("button", { name: "ファイル" }).click(); | ||
await getQuasarMenu(page, "選択音声を書き出し").click(); | ||
|
||
// FileChooserでいけるかも | ||
// https://playwright.dev/docs/api/class-filechooser | ||
}); | ||
}); |