Add cache hit test.

Created on 8 June 2023, about 1 year ago

Add cache hit test for Cypress and Playwright.

   expect(await response.headerValue('X-Drupal-Cache') == 'HIT' ||
      await response.headerValue('X-Drupal-Dynamic-Cache') == 'HIT' ||
      await response.headerValue('X-Cache') == 'HIT' ||
      await response.headerValue('X-Varnish-Cache') == 'HIT').toBeTruthy();

h/t Petar Basic of Drunomics:
https://github.com/drunomics/playwright-drupal-starter/blob/main/tests/playwright/tests/helpers/test-methods.js

πŸ“Œ Task
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States aangel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024