Add metatagIsPresent assertion

Created on 8 June 2023, about 1 year ago

Specify the key name, the key value and the content.
Do this for both Cypress and Playwright.

 checkMetaContentByProperty: async ([response, key, value, content]) => {
    let jsonContent = JSON.parse(await response.text());
    for (const meta_elem of jsonContent.metatags.meta) {
      if (meta_elem[key] === value) {
        expect(meta_elem['content']).toEqual(content);
      }
    }
  },

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