-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: コンテキストメニューにアクセント句の削除を追加 (#1554)
- Loading branch information
Showing
4 changed files
with
88 additions
and
0 deletions.
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
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,30 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
import { navigateToMain } from "../navigators"; | ||
|
||
test.beforeEach(async ({ page }) => { | ||
const BASE_URL = "http://localhost:5173/#/home"; | ||
await page.setViewportSize({ width: 800, height: 600 }); | ||
await page.goto(BASE_URL); | ||
}); | ||
|
||
test("詳細調整欄のコンテキストメニュー", async ({ page }) => { | ||
await navigateToMain(page); | ||
await page.waitForTimeout(100); | ||
|
||
// 削除 | ||
await page.getByRole("textbox", { name: "1行目" }).click(); | ||
await page.getByRole("textbox", { name: "1行目" }).fill("1234"); | ||
await page.getByRole("textbox", { name: "1行目" }).press("Enter"); | ||
await page.getByText("サンジュウ").click({ | ||
button: "right", | ||
}); | ||
await page | ||
.getByRole("listitem") | ||
.filter({ has: page.getByText("削除") }) | ||
.click(); | ||
await page.waitForTimeout(100); | ||
await expect(page.getByText("サンジュウ")).not.toBeVisible(); | ||
await expect(page.getByText("ニヒャク")).toBeVisible(); | ||
await expect(page.getByText("ヨン")).toBeVisible(); | ||
}); |