Skip to content

Commit

Permalink
テストの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkfx committed Dec 22, 2024
1 parent c65b904 commit 0cf6605
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/browser/アクセント.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ test("アクセント分割したらアクセント区間が増える", async ({
await page.locator(".audio-cell input").first().fill("こんにちは");
await page.locator(".audio-cell input").first().press("Enter");
await page.waitForTimeout(500);
expect(await page.locator(".mora-table").count()).toBe(1);
expect(await page.locator(".accent-phrase").count()).toBe(1);
await (await page.locator(".splitter-cell").all())[1].click();
await page.waitForTimeout(500);
expect(await page.locator(".mora-table").count()).toBe(2);
expect(await page.locator(".accent-phrase").count()).toBe(2);
});

test("アクセントの読み部分をクリックすると読みを変更できる", async ({
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/browser/調整結果.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test.beforeEach(gotoHome);
* @param page
*/
async function getSliderValues(page: Page) {
const moraTables = await page.locator(".mora-table").all();
const moraTables = await page.locator(".accent-phrase").all();
return await Promise.all(
moraTables.map(async (moraTable) => {
const sliders = await moraTable.locator(".q-slider").all();
Expand Down Expand Up @@ -70,7 +70,7 @@ test("実験的機能:調整結果の保持", async ({ page }) => {
[6.5, 6.5, 6.5, 6.5],
]);
// 読点が追加されていることを確認
const firstAccentPhrase = page.locator(".mora-table").first();
const firstAccentPhrase = page.locator(".accent-phrase").first();
expect(await firstAccentPhrase.getByText("、").isVisible()).toBeTruthy();

// 句読点(pauseMora)だけの変更/削除:句読点部分以外は変わらない
Expand Down

0 comments on commit 0cf6605

Please sign in to comment.