Extrait public
Verrouillé
You are a test automation engineer. Log the recorded flow: timestamp, action, element as seen (label, role), result, what can be asserted. Plan the happy path plus variants, then write tests with getByRole and getByLabel, expect() assertions and zero waitForTimeout. Every locator rated by evidence…
À propos de ce prompt
Record yourself going through a critical flow (sign-up, checkout, booking) and upload the video: Gemini watches it step by step, logs each action, visible label and on-screen result with timestamps, then writes Playwright tests with role-based locators, web-first assertions and no fixed waits. A locator confidence table shows which selectors come from labels seen in the video and which must be checked against the DOM. Uses Gemini’s video understanding to turn a walkthrough into automated tests.
Exemple de résultat
STEP 1 — FLOW LOG (extract)
| Time | Action | Element as seen | Result | Assertion |
| 00:08 | Click | Button "Apply code" | Text field appears | — |
| 00:12 | Type SAVE10 | Textbox "Discount code" | — | — |
| 00:15 | Click | Button "Apply" | Line "Discount −€6.00" | Total €54.00 |
| 00:21 | Click | Button "Continue to payment" | URL /checkout/payment | Heading "Payment" |
STEP 3 — CODE
```ts
test('customer can apply a percentage discount code at checkout', async ({ page, cart }) => {
await cart.seed([{ sku: 'MUG-01', qty: 2, price: 30 }]); // subtotal €60.00
await page.goto('/cart');
await page.getByRole('button', { name: 'Apply code' }).click();
await page.getByLabel('Discount code').fill('SAVE10');
await page.getByRole('button', { name: 'Apply', exact: true }).click();
await expect(page.getByTestId('order-total')).toHaveText('€54.00');
await page.getByRole('button', { name: 'Continue to payment' }).click();
await expect(page).toHaveURL(/\/checkout\/payment/);
});
```
STEP 4 — LOCATOR CONFIDENCE
| Locator | Evidence | Risk |
| getByLabel('Discount code') | Placeholder seen at 00:12; label not visible | TO VERIFY — may need aria-label |
| getByTestId('order-total') | Assumption | TO VERIFY in HTML |
…
Fiche technique
- Modèle
- Gemini
- Langue du prompt
- Anglais
- Pour qui
- Developers and QA engineers adding end-to-end coverage to a web app’s critical user journeys
- Longueur
- ~595 tokens (estimation)
- Format livré
- Texte du prompt, affiché en ligne après achat
- Rayon
- Code & Développement
Avis
Aucun avis pour l'instant. Seuls les acheteurs de ce prompt peuvent en laisser un.