Jump to content
The mkiv Supra Owners Club

Fe Replay Script -

// replay-fe-issue.js import { test, expect } from '@playwright/test'; test('FE-456: promo code flash error', async ({ page }) => { // Preconditions await page.goto('https://shop.example.com/login'); await page.fill('#email', 'buyer@example.com'); await page.fill('#password', 'testpass123'); await page.click('button[type="submit"]');

// Go to cart and apply promo await page.goto('https://shop.example.com/cart'); await page.fill('input[name="promo"]', 'SAVE10'); await page.click('button.apply-promo'); FE Replay Script

// Add item to cart await page.goto('https://shop.example.com/product/tshirt'); await page.click('button.add-to-cart'); // replay-fe-issue

// Wait 1 sec – message should stay, but it disappears await page.waitForTimeout(1000); await expect(errorMessage).not.toBeVisible(); // Fails in fixed version // replay-fe-issue.js import { test

// Observe error flash const errorMessage = page.locator('.promo-error'); await expect(errorMessage).toHaveText('Invalid code');

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.