test(web): match the exact update action in prefill flow

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
XiaoSeS 2026-11-04 16:30:12 +08:00
parent b446e300a8
commit 4413db5304

View file

@ -25,7 +25,7 @@ test.describe('My Skills Update Prefill (Real API)', () => {
has: page.getByRole('heading', { name: skillName, exact: true }),
}).first()
await expect(skillCard).toBeVisible()
await skillCard.getByRole('button', { name: 'Update' }).click()
await skillCard.getByRole('button', { name: 'Update', exact: true }).click()
await expect(page).toHaveURL(/\/dashboard\/publish/)