test(release): align selected production e2e assertions

This commit is contained in:
Codex
2026-07-27 16:40:52 +08:00
parent 1b121a8ef8
commit ddacd03601
3 changed files with 15 additions and 5 deletions
@@ -26,7 +26,10 @@ test("guest unlocks a promoted image through email login and top-up", async ({
);
await expect(page).toHaveURL(defaultCharacterChatUrl);
const unlockButton = page.getByRole("button", {
const promotedImageCard = page
.getByRole("group", { name: "Locked private image" })
.last();
const unlockButton = promotedImageCard.getByRole("button", {
name: "Unlock private image",
});
await expect(unlockButton).toBeVisible({ timeout: 10_000 });