Skip to content

Commit 8972932

Browse files
committed
test(e2e): scope evaluation approval selector
1 parent 05fa171 commit 8972932

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

e2e/recruitment-flow.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,12 @@ test.describe("recruitment evaluation approval", () => {
403403
).toBeVisible();
404404

405405
const evaluationCard = page.locator('[data-slot="card"]', {
406-
hasText: "E2E 面评内容:表达清晰,建议通过。",
406+
hasText: flowTitle,
407407
});
408-
await evaluationCard.getByRole("button", { name: "通过" }).click();
408+
await evaluationCard
409+
.filter({ hasText: "E2E 面评内容:表达清晰,建议通过。" })
410+
.getByRole("button", { name: "通过", exact: true })
411+
.click();
409412

410413
await expect(page.getByText("面评已通过")).toBeVisible();
411414

0 commit comments

Comments
 (0)