From 3921b7b336ddbee77eb81725e05f359306163b85 Mon Sep 17 00:00:00 2001 From: cverorg <292680828+cverorg@users.noreply.github.com> Date: Fri, 25 Sep 2026 01:19:57 +0900 Subject: [PATCH] verify/first-link: pick the kind by its data-type (the button's text now carries the description with no separator) --- packages/cardtile/verify/first-link.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cardtile/verify/first-link.mjs b/packages/cardtile/verify/first-link.mjs index f1a7ad9..24f3019 100644 --- a/packages/cardtile/verify/first-link.mjs +++ b/packages/cardtile/verify/first-link.mjs @@ -12,7 +12,7 @@ const step = (n) => steps.push(`${n} @${Date.now()-t0}ms`); await p.goto(URL_, { waitUntil:'networkidle' }); step('page ready'); const canvas = p.frameLocator('#canvas'); await canvas.locator('.ct2-add').first().tap(); step('tap +'); -await p.locator('.ctw-modal:visible button', { hasText: /^Link\b/ }).first().tap(); step('tap Link'); +await p.locator('.ctw-modal:visible button[data-type="link"]').first().tap(); step('tap Link'); const sheet = p.locator('.ctw-modal:visible').first(); const inputs = await sheet.locator('input').evaluateAll(es => es.map(e => ({ type: e.type, name: e.name || e.dataset.field || '', ph: e.placeholder, val: e.value }))); await sheet.locator('input').nth(0).fill('My shop'); step('type label');