Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/app/test/skills.browser.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ test("skills link to detail pages and edit from the detail page", async () => {
await page.getByRole("link", { name: "review", exact: true }).click();
await page.getByRole("heading", { name: "review", exact: true }).waitFor();
assert.equal(new URL(page.url()).pathname, `/skills/${skill.id}`);
assert.equal(await page.getByRole("button", { name: "Edit", exact: true }).count(), 1);
const editButton = page.getByRole("button", { name: "Edit", exact: true });
await editButton.waitFor({ state: "visible" });
assert.equal(await editButton.count(), 1);
await page.getByRole("button", { name: "Edit", exact: true }).click();
await page.getByLabel("Key", { exact: true }).fill("review-updated");
await page.locator("textarea").fill("Updated instructions");
Expand Down
Loading