[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AFK2ACJDAP46NQ5JZMERBM":3,"skill-same:01M6AFK2ACJDAP46NQ5JZMERBM":107},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":17,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6AFK2ACJDAP46NQ5JZMERBM","cookie-consent-testing","Cookie 同意横幅自动化测试","Automated cookie consent validation using Selenium and Playwright. Covers banner interaction testing, consent state verification, tag firing audit after consent choices, regression testing for cookie compliance, and CI\u002FCD pipeline integration.","使用 Selenium 和 Playwright 自动化验证 Cookie 同意机制。涵盖横幅交互测试、同意状态验证、用户作出同意选择后的标签触发审计、面向 Cookie 合规的回归测试，以及 CI\u002FCD 流水线集成。","mukul975\u002FPrivacy-Data-Protection-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADNKWX1HF4Q5DKEXT5M774",338,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fcookie-consent-testing\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C7WSFD8D39EG1STTDDNVCZ","隐私与 Cookie 合规","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44],"testing","cookie consent testing","playwright","validation","state","verification","selenium","audit","integration","ci","compliance","privacy","pipeline","regression-testing","2026-11-10 10:12:30",false,"---\nname: cookie-consent-testing\ndescription: >-\n  Automated cookie consent validation using Selenium and Playwright. Covers banner\n  interaction testing, consent state verification, tag firing audit after consent\n  choices, regression testing for cookie compliance, and CI\u002FCD pipeline integration.\nlicense: Apache-2.0\nmetadata:\n  author: mukul975\n  version: \"1.0\"\n  domain: privacy\n  subdomain: cookie-consent-compliance\n  tags: \"cookie-testing, selenium, playwright, consent-validation, regression-testing\"\n---\n\n# Automated Cookie Consent Validation\n\n## Overview\n\nManual cookie consent testing is insufficient for modern web applications where deployments occur multiple times daily and third-party scripts update independently. Automated testing using browser automation frameworks — Selenium and Playwright — enables continuous verification that the cookie consent banner functions correctly, that non-essential cookies are blocked before consent, that consent choices are respected, and that tag firing aligns with the user's consent state. Integrating these tests into the CI\u002FCD pipeline ensures that every deployment is verified for cookie compliance before reaching production.\n\n## Test Architecture\n\n### Test Categories\n\n| Category | What It Tests | When to Run |\n|----------|--------------|-------------|\n| Banner display | Banner appears on first visit; correct layout and text | Every deployment |\n| Pre-consent blocking | No non-essential cookies\u002Ftags before user interaction | Every deployment |\n| Consent acceptance | Accept All sets correct cookies and fires correct tags | Every deployment |\n| Consent rejection | Reject All blocks all non-essential cookies and tags | Every deployment |\n| Granular consent | Per-category toggles work correctly | Every deployment |\n| Consent persistence | Consent state survives page navigation and browser restart | Daily |\n| Consent withdrawal | Changing consent removes cookies and stops tags | Weekly |\n| Consent expiry | Banner re-appears after consent expires | Monthly |\n| GPC signal | GPC header triggers automatic opt-out | Every deployment |\n| Regression | New cookies not introduced without documentation | Every deployment |\n\n### Test Environment Setup\n\n**Playwright Configuration for Pinnacle E-Commerce Ltd:**\n\n```javascript\n\u002F\u002F playwright.config.js\nconst { defineConfig, devices } = require('@playwright\u002Ftest');\n\nmodule.exports = defineConfig({\n  testDir: '.\u002Ftests\u002Fcookie-consent',\n  timeout: 30000,\n  retries: 1,\n  use: {\n    baseURL: 'https:\u002F\u002Fstaging.pinnacle-ecommerce.com',\n    trace: 'on-first-retry',\n    screenshot: 'only-on-failure',\n  },\n  projects: [\n    {\n      name: 'chromium',\n      use: { ...devices['Desktop Chrome'] },\n    },\n    {\n      name: 'firefox',\n      use: { ...devices['Desktop Firefox'] },\n    },\n    {\n      name: 'webkit',\n      use: { ...devices['Desktop Safari'] },\n    },\n    {\n      name: 'mobile-chrome',\n      use: { ...devices['Pixel 5'] },\n    },\n    {\n      name: 'mobile-safari',\n      use: { ...devices['iPhone 13'] },\n    },\n  ],\n});\n```\n\n## Test Implementations\n\n### Test 1: Pre-Consent Cookie Blocking\n\nVerify that no non-essential cookies are set before the user interacts with the consent banner.\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Fpre-consent-blocking.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\n\nconst ESSENTIAL_COOKIES = [\n  'session_id',\n  'csrf_token',\n  'consent_state',\n  'load_balancer',\n  'pinnacle_consent_eu',\n  'pinnacle_consent_uk',\n  'pinnacle_consent_ccpa',\n];\n\nconst NON_ESSENTIAL_COOKIES = [\n  '_ga',\n  '_ga_',\n  '_gid',\n  '_fbp',\n  '_fbc',\n  '_gcl_au',\n  '_hjSession',\n  '_hjSessionUser',\n  'IDE',\n  'fr',\n  'NID',\n];\n\ntest.describe('Pre-Consent Cookie Blocking', () => {\n  test('no non-essential cookies are set on page load before consent', async ({ page }) => {\n    \u002F\u002F Navigate to homepage without any prior consent\n    await page.goto('\u002F');\n\n    \u002F\u002F Wait for page to fully load including all third-party scripts\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Get all cookies\n    const cookies = await page.context().cookies();\n    const cookieNames = cookies.map(c => c.name);\n\n    \u002F\u002F Verify no non-essential cookies exist\n    for (const nonEssential of NON_ESSENTIAL_COOKIES) {\n      const found = cookieNames.filter(name => name.startsWith(nonEssential));\n      expect(found, `Non-essential cookie ${nonEssential} found before consent`).toHaveLength(0);\n    }\n  });\n\n  test('no analytics network requests before consent', async ({ page }) => {\n    const analyticsRequests = [];\n\n    \u002F\u002F Monitor network requests\n    page.on('request', request => {\n      const url = request.url();\n      if (\n        url.includes('google-analytics.com') ||\n        url.includes('analytics.google.com') ||\n        url.includes('facebook.com\u002Ftr') ||\n        url.includes('connect.facebook.net') ||\n        url.includes('hotjar.com')\n      ) {\n        analyticsRequests.push(url);\n      }\n    });\n\n    await page.goto('\u002F');\n    await page.waitForLoadState('networkidle');\n\n    expect(analyticsRequests, 'Analytics requests fired before consent').toHaveLength(0);\n  });\n\n  test('no localStorage tracking entries before consent', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.waitForLoadState('networkidle');\n\n    const trackingKeys = await page.evaluate(() => {\n      const suspicious = [];\n      for (let i = 0; i \u003C localStorage.length; i++) {\n        const key = localStorage.key(i);\n        if (key.startsWith('_hj') || key.startsWith('_ga') || key.includes('fb_')) {\n          suspicious.push(key);\n        }\n      }\n      return suspicious;\n    });\n\n    expect(trackingKeys, 'Tracking localStorage entries found before consent').toHaveLength(0);\n  });\n});\n```\n\n### Test 2: Banner Display and Interaction\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Fbanner-display.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\n\ntest.describe('Cookie Banner Display', () => {\n  test('banner appears on first visit', async ({ page }) => {\n    await page.goto('\u002F');\n\n    \u002F\u002F Banner should be visible\n    const banner = page.locator('[data-testid=\"cookie-banner\"]');\n    await expect(banner).toBeVisible();\n  });\n\n  test('banner has Accept All button', async ({ page }) => {\n    await page.goto('\u002F');\n    const acceptButton = page.locator('[data-testid=\"cookie-accept-all\"]');\n    await expect(acceptButton).toBeVisible();\n    await expect(acceptButton).toHaveText(\u002FAccept All\u002Fi);\n  });\n\n  test('banner has Reject All button with equal prominence', async ({ page }) => {\n    await page.goto('\u002F');\n    const acceptButton = page.locator('[data-testid=\"cookie-accept-all\"]');\n    const rejectButton = page.locator('[data-testid=\"cookie-reject-all\"]');\n\n    await expect(rejectButton).toBeVisible();\n    await expect(rejectButton).toHaveText(\u002FReject All\u002Fi);\n\n    \u002F\u002F Verify equal visual prominence (same size)\n    const acceptBox = await acceptButton.boundingBox();\n    const rejectBox = await rejectButton.boundingBox();\n\n    expect(Math.abs(acceptBox.width - rejectBox.width)).toBeLessThan(10);\n    expect(Math.abs(acceptBox.height - rejectBox.height)).toBeLessThan(5);\n  });\n\n  test('banner has Customise\u002FManage Preferences option', async ({ page }) => {\n    await page.goto('\u002F');\n    const customiseButton = page.locator('[data-testid=\"cookie-customise\"]');\n    await expect(customiseButton).toBeVisible();\n  });\n\n  test('banner does not reappear after making a choice', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-accept-all\"]').click();\n\n    \u002F\u002F Navigate to another page\n    await page.goto('\u002Fproducts');\n    await page.waitForLoadState('networkidle');\n\n    const banner = page.locator('[data-testid=\"cookie-banner\"]');\n    await expect(banner).not.toBeVisible();\n  });\n\n  test('banner is keyboard accessible', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.keyboard.press('Tab');\n\n    \u002F\u002F Focus should be within the banner\n    const focusedElement = await page.evaluate(() => {\n      const el = document.activeElement;\n      return el ? el.closest('[data-testid=\"cookie-banner\"]') !== null : false;\n    });\n    expect(focusedElement).toBe(true);\n  });\n});\n```\n\n### Test 3: Consent State Verification\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Fconsent-state.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\n\ntest.describe('Consent State Verification', () => {\n  test('Accept All sets all consent categories to granted', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-accept-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    const cookies = await page.context().cookies();\n    const consentCookie = cookies.find(c => c.name === 'pinnacle_consent_eu');\n\n    expect(consentCookie).toBeTruthy();\n    const consentState = JSON.parse(decodeURIComponent(consentCookie.value));\n    expect(consentState.analytics).toBe(true);\n    expect(consentState.advertising).toBe(true);\n    expect(consentState.functionality).toBe(true);\n  });\n\n  test('Reject All sets all consent categories to denied', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-reject-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    const cookies = await page.context().cookies();\n    const consentCookie = cookies.find(c => c.name === 'pinnacle_consent_eu');\n\n    expect(consentCookie).toBeTruthy();\n    const consentState = JSON.parse(decodeURIComponent(consentCookie.value));\n    expect(consentState.analytics).toBe(false);\n    expect(consentState.advertising).toBe(false);\n    expect(consentState.functionality).toBe(false);\n  });\n\n  test('Reject All blocks GA4 cookies', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-reject-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Navigate to multiple pages to give GA4 time to attempt cookie setting\n    await page.goto('\u002Fproducts');\n    await page.waitForLoadState('networkidle');\n    await page.goto('\u002Fabout');\n    await page.waitForLoadState('networkidle');\n\n    const cookies = await page.context().cookies();\n    const gaCookies = cookies.filter(c => c.name.startsWith('_ga'));\n    expect(gaCookies).toHaveLength(0);\n  });\n\n  test('Granular consent: analytics only sets only analytics cookies', async ({ page }) => {\n    await page.goto('\u002F');\n\n    \u002F\u002F Open customisation layer\n    await page.locator('[data-testid=\"cookie-customise\"]').click();\n\n    \u002F\u002F Enable only analytics\n    const analyticsToggle = page.locator('[data-testid=\"consent-toggle-analytics\"]');\n    await analyticsToggle.click();\n\n    \u002F\u002F Ensure advertising is off\n    const advertisingToggle = page.locator('[data-testid=\"consent-toggle-advertising\"]');\n    const isAdvertisingChecked = await advertisingToggle.isChecked();\n    expect(isAdvertisingChecked).toBe(false);\n\n    \u002F\u002F Confirm choices\n    await page.locator('[data-testid=\"cookie-confirm-choices\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    const cookies = await page.context().cookies();\n    const cookieNames = cookies.map(c => c.name);\n\n    \u002F\u002F GA cookies should be present\n    expect(cookieNames.some(n => n.startsWith('_ga'))).toBe(true);\n\n    \u002F\u002F Advertising cookies should NOT be present\n    expect(cookieNames.some(n => n === '_fbp')).toBe(false);\n    expect(cookieNames.some(n => n === '_gcl_au')).toBe(false);\n  });\n});\n```\n\n### Test 4: Tag Firing Audit\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Ftag-firing.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\n\ntest.describe('Tag Firing Audit', () => {\n  test('GA4 tag fires only after analytics consent', async ({ page }) => {\n    let ga4Fired = false;\n\n    page.on('request', request => {\n      if (request.url().includes('google-analytics.com\u002Fg\u002Fcollect') ||\n          request.url().includes('analytics.google.com\u002Fg\u002Fcollect')) {\n        ga4Fired = true;\n      }\n    });\n\n    \u002F\u002F Load page — GA4 should not fire\n    await page.goto('\u002F');\n    await page.waitForLoadState('networkidle');\n    expect(ga4Fired, 'GA4 fired before consent').toBe(false);\n\n    \u002F\u002F Accept analytics\n    await page.locator('[data-testid=\"cookie-customise\"]').click();\n    await page.locator('[data-testid=\"consent-toggle-analytics\"]').click();\n    await page.locator('[data-testid=\"cookie-confirm-choices\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Navigate to trigger a pageview\n    await page.goto('\u002Fproducts');\n    await page.waitForLoadState('networkidle');\n    expect(ga4Fired, 'GA4 did not fire after analytics consent').toBe(true);\n  });\n\n  test('Meta Pixel does not fire when advertising is rejected', async ({ page }) => {\n    let metaPixelFired = false;\n\n    page.on('request', request => {\n      if (request.url().includes('facebook.com\u002Ftr') ||\n          request.url().includes('connect.facebook.net')) {\n        metaPixelFired = true;\n      }\n    });\n\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-reject-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    await page.goto('\u002Fproducts');\n    await page.waitForLoadState('networkidle');\n    await page.goto('\u002Fproducts\u002Fwidget-pro');\n    await page.waitForLoadState('networkidle');\n\n    expect(metaPixelFired, 'Meta Pixel fired after reject all').toBe(false);\n  });\n\n  test('Google Consent Mode sends correct consent state', async ({ page }) => {\n    const consentPings = [];\n\n    page.on('request', request => {\n      const url = request.url();\n      if (url.includes('google-analytics.com') && url.includes('gcs=')) {\n        const gcsMatch = url.match(\u002Fgcs=([^&]+)\u002F);\n        if (gcsMatch) consentPings.push(gcsMatch[1]);\n      }\n    });\n\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-reject-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Navigate to trigger consent mode ping\n    await page.goto('\u002Fproducts');\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F If consent mode pings are sent, verify denied state\n    if (consentPings.length > 0) {\n      for (const gcs of consentPings) {\n        \u002F\u002F G100 = all denied, G111 = all granted\n        expect(gcs).toContain('100');\n      }\n    }\n  });\n});\n```\n\n### Test 5: Cookie Regression Detection\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Fregression.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\nconst fs = require('fs');\n\n\u002F\u002F Baseline of known cookies — update when new cookies are intentionally added\nconst KNOWN_COOKIES = new Set([\n  'session_id',\n  'csrf_token',\n  'consent_state',\n  'pinnacle_consent_eu',\n  'load_balancer',\n  '_ga',\n  '_ga_PINNACLE',\n  '_gid',\n  '_fbp',\n  '_fbc',\n  '_gcl_au',\n  '_hjSessionUser',\n  '_hjSession',\n  'locale',\n  'currency',\n  'recently_viewed',\n  'cart_session',\n  'auth_token',\n]);\n\ntest.describe('Cookie Regression Detection', () => {\n  test('no unknown cookies after Accept All', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-accept-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Visit several pages to trigger all tag scenarios\n    const pages = ['\u002F', '\u002Fproducts', '\u002Fproducts\u002Fwidget-pro', '\u002Fcart', '\u002Fabout', '\u002Fblog'];\n    for (const path of pages) {\n      await page.goto(path);\n      await page.waitForLoadState('networkidle');\n    }\n\n    const cookies = await page.context().cookies();\n    const unknownCookies = cookies.filter(c => {\n      \u002F\u002F Check if cookie name matches any known prefix\n      return !Array.from(KNOWN_COOKIES).some(known =>\n        c.name === known || c.name.startsWith(known)\n      );\n    });\n\n    if (unknownCookies.length > 0) {\n      const unknownNames = unknownCookies.map(c => `${c.name} (domain: ${c.domain}, expires: ${c.expires})`);\n      console.error('Unknown cookies detected:', unknownNames);\n\n      \u002F\u002F Write to report file for review\n      fs.writeFileSync(\n        'test-results\u002Funknown-cookies.json',\n        JSON.stringify(unknownCookies, null, 2)\n      );\n    }\n\n    expect(unknownCookies, `Unknown cookies found: ${unknownCookies.map(c => c.name).join(', ')}`).toHaveLength(0);\n  });\n});\n```\n\n### Test 6: GPC Signal Handling\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Fgpc-signal.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\n\ntest.describe('Global Privacy Control Signal', () => {\n  test('GPC signal triggers automatic opt-out for California users', async ({ browser }) => {\n    \u002F\u002F Create context with GPC header\n    const context = await browser.newContext({\n      extraHTTPHeaders: {\n        'Sec-GPC': '1',\n      },\n      locale: 'en-US',\n      geolocation: { latitude: 34.0522, longitude: -118.2437 }, \u002F\u002F Los Angeles\n      permissions: ['geolocation'],\n    });\n\n    const page = await context.newPage();\n    await page.goto('\u002F');\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Verify advertising cookies are not set\n    const cookies = await context.cookies();\n    const adCookies = cookies.filter(c =>\n      c.name === '_fbp' || c.name === '_gcl_au' || c.name.startsWith('IDE')\n    );\n\n    expect(adCookies, 'Advertising cookies set despite GPC signal').toHaveLength(0);\n\n    await context.close();\n  });\n});\n```\n\n## CI\u002FCD Pipeline Integration\n\n### GitHub Actions Workflow\n\n```yaml\nname: Cookie Consent Compliance Tests\non:\n  push:\n    branches: [main, staging]\n  pull_request:\n    branches: [main]\n  schedule:\n    - cron: '0 6 * * 1'  # Weekly Monday 6 AM UTC\n\njobs:\n  cookie-consent-tests:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Install Playwright browsers\n        run: npx playwright install --with-deps\n\n      - name: Run cookie consent tests\n        run: npx playwright test tests\u002Fcookie-consent\u002F\n        env:\n          BASE_URL: ${{ vars.STAGING_URL }}\n\n      - name: Upload test results\n        uses: actions\u002Fupload-artifact@v4\n        if: always()\n        with:\n          name: cookie-consent-test-results\n          path: |\n            test-results\u002F\n            playwright-report\u002F\n\n      - name: Post results to Slack\n        if: failure()\n        uses: slackapi\u002Fslack-github-action@v1\n        with:\n          payload: |\n            {\n              \"text\": \"Cookie consent tests FAILED on ${{ github.ref }}. Review: ${{ github.server_url }}\u002F${{ github.repository }}\u002Factions\u002Fruns\u002F${{ github.run_id }}\"\n            }\n        env:\n          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PRIVACY_WEBHOOK }}\n```\n\n## Key Legal and Technical References\n\n- **ePrivacy Directive 2002\u002F58\u002FEC, Article 5(3)** — Legal requirement that automated tests verify\n- **CJEU Case C-673\u002F17 (Planet49)** — Active consent requirements validated by banner interaction tests\n- **CNIL Deliberation No. 2020-091** — Equal prominence requirement tested by button size comparison\n- **CCPA\u002FCPRA Cal. Civ. Code §1798.135(e)** — GPC signal handling tested in GPC test suite\n- **Playwright Documentation** — Browser automation framework for cross-browser testing\n- **WCAG 2.1 Level AA** — Accessibility requirements tested by keyboard navigation tests\n- **Google Consent Mode Documentation** — Consent state parameters validated in tag firing tests\n","# Automated Cookie Consent Validation\n\n## Overview\n\nManual cookie consent testing is insufficient for modern web applications where deployments occur multiple times daily and third-party scripts update independently. Automated testing using browser automation frameworks — Selenium and Playwright — enables continuous verification that the cookie consent banner functions correctly, that non-essential cookies are blocked before consent, that consent choices are respected, and that tag firing aligns with the user's consent state. Integrating these tests into the CI\u002FCD pipeline ensures that every deployment is verified for cookie compliance before reaching production.\n\n## Test Architecture\n\n### Test Categories\n\n| Category | What It Tests | When to Run |\n|----------|--------------|-------------|\n| Banner display | Banner appears on first visit; correct layout and text | Every deployment |\n| Pre-consent blocking | No non-essential cookies\u002Ftags before user interaction | Every deployment |\n| Consent acceptance | Accept All sets correct cookies and fires correct tags | Every deployment |\n| Consent rejection | Reject All blocks all non-essential cookies and tags | Every deployment |\n| Granular consent | Per-category toggles work correctly | Every deployment |\n| Consent persistence | Consent state survives page navigation and browser restart | Daily |\n| Consent withdrawal | Changing consent removes cookies and stops tags | Weekly |\n| Consent expiry | Banner re-appears after consent expires | Monthly |\n| GPC signal | GPC header triggers automatic opt-out | Every deployment |\n| Regression | New cookies not introduced without documentation | Every deployment |\n\n### Test Environment Setup\n\n**Playwright Configuration for Pinnacle E-Commerce Ltd:**\n\n```javascript\n\u002F\u002F playwright.config.js\nconst { defineConfig, devices } = require('@playwright\u002Ftest');\n\nmodule.exports = defineConfig({\n  testDir: '.\u002Ftests\u002Fcookie-consent',\n  timeout: 30000,\n  retries: 1,\n  use: {\n    baseURL: 'https:\u002F\u002Fstaging.pinnacle-ecommerce.com',\n    trace: 'on-first-retry',\n    screenshot: 'only-on-failure',\n  },\n  projects: [\n    {\n      name: 'chromium',\n      use: { ...devices['Desktop Chrome'] },\n    },\n    {\n      name: 'firefox',\n      use: { ...devices['Desktop Firefox'] },\n    },\n    {\n      name: 'webkit',\n      use: { ...devices['Desktop Safari'] },\n    },\n    {\n      name: 'mobile-chrome',\n      use: { ...devices['Pixel 5'] },\n    },\n    {\n      name: 'mobile-safari',\n      use: { ...devices['iPhone 13'] },\n    },\n  ],\n});\n```\n\n## Test Implementations\n\n### Test 1: Pre-Consent Cookie Blocking\n\nVerify that no non-essential cookies are set before the user interacts with the consent banner.\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Fpre-consent-blocking.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\n\nconst ESSENTIAL_COOKIES = [\n  'session_id',\n  'csrf_token',\n  'consent_state',\n  'load_balancer',\n  'pinnacle_consent_eu',\n  'pinnacle_consent_uk',\n  'pinnacle_consent_ccpa',\n];\n\nconst NON_ESSENTIAL_COOKIES = [\n  '_ga',\n  '_ga_',\n  '_gid',\n  '_fbp',\n  '_fbc',\n  '_gcl_au',\n  '_hjSession',\n  '_hjSessionUser',\n  'IDE',\n  'fr',\n  'NID',\n];\n\ntest.describe('Pre-Consent Cookie Blocking', () => {\n  test('no non-essential cookies are set on page load before consent', async ({ page }) => {\n    \u002F\u002F Navigate to homepage without any prior consent\n    await page.goto('\u002F');\n\n    \u002F\u002F Wait for page to fully load including all third-party scripts\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Get all cookies\n    const cookies = await page.context().cookies();\n    const cookieNames = cookies.map(c => c.name);\n\n    \u002F\u002F Verify no non-essential cookies exist\n    for (const nonEssential of NON_ESSENTIAL_COOKIES) {\n      const found = cookieNames.filter(name => name.startsWith(nonEssential));\n      expect(found, `Non-essential cookie ${nonEssential} found before consent`).toHaveLength(0);\n    }\n  });\n\n  test('no analytics network requests before consent', async ({ page }) => {\n    const analyticsRequests = [];\n\n    \u002F\u002F Monitor network requests\n    page.on('request', request => {\n      const url = request.url();\n      if (\n        url.includes('google-analytics.com') ||\n        url.includes('analytics.google.com') ||\n        url.includes('facebook.com\u002Ftr') ||\n        url.includes('connect.facebook.net') ||\n        url.includes('hotjar.com')\n      ) {\n        analyticsRequests.push(url);\n      }\n    });\n\n    await page.goto('\u002F');\n    await page.waitForLoadState('networkidle');\n\n    expect(analyticsRequests, 'Analytics requests fired before consent').toHaveLength(0);\n  });\n\n  test('no localStorage tracking entries before consent', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.waitForLoadState('networkidle');\n\n    const trackingKeys = await page.evaluate(() => {\n      const suspicious = [];\n      for (let i = 0; i \u003C localStorage.length; i++) {\n        const key = localStorage.key(i);\n        if (key.startsWith('_hj') || key.startsWith('_ga') || key.includes('fb_')) {\n          suspicious.push(key);\n        }\n      }\n      return suspicious;\n    });\n\n    expect(trackingKeys, 'Tracking localStorage entries found before consent').toHaveLength(0);\n  });\n});\n```\n\n### Test 2: Banner Display and Interaction\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Fbanner-display.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\n\ntest.describe('Cookie Banner Display', () => {\n  test('banner appears on first visit', async ({ page }) => {\n    await page.goto('\u002F');\n\n    \u002F\u002F Banner should be visible\n    const banner = page.locator('[data-testid=\"cookie-banner\"]');\n    await expect(banner).toBeVisible();\n  });\n\n  test('banner has Accept All button', async ({ page }) => {\n    await page.goto('\u002F');\n    const acceptButton = page.locator('[data-testid=\"cookie-accept-all\"]');\n    await expect(acceptButton).toBeVisible();\n    await expect(acceptButton).toHaveText(\u002FAccept All\u002Fi);\n  });\n\n  test('banner has Reject All button with equal prominence', async ({ page }) => {\n    await page.goto('\u002F');\n    const acceptButton = page.locator('[data-testid=\"cookie-accept-all\"]');\n    const rejectButton = page.locator('[data-testid=\"cookie-reject-all\"]');\n\n    await expect(rejectButton).toBeVisible();\n    await expect(rejectButton).toHaveText(\u002FReject All\u002Fi);\n\n    \u002F\u002F Verify equal visual prominence (same size)\n    const acceptBox = await acceptButton.boundingBox();\n    const rejectBox = await rejectButton.boundingBox();\n\n    expect(Math.abs(acceptBox.width - rejectBox.width)).toBeLessThan(10);\n    expect(Math.abs(acceptBox.height - rejectBox.height)).toBeLessThan(5);\n  });\n\n  test('banner has Customise\u002FManage Preferences option', async ({ page }) => {\n    await page.goto('\u002F');\n    const customiseButton = page.locator('[data-testid=\"cookie-customise\"]');\n    await expect(customiseButton).toBeVisible();\n  });\n\n  test('banner does not reappear after making a choice', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-accept-all\"]').click();\n\n    \u002F\u002F Navigate to another page\n    await page.goto('\u002Fproducts');\n    await page.waitForLoadState('networkidle');\n\n    const banner = page.locator('[data-testid=\"cookie-banner\"]');\n    await expect(banner).not.toBeVisible();\n  });\n\n  test('banner is keyboard accessible', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.keyboard.press('Tab');\n\n    \u002F\u002F Focus should be within the banner\n    const focusedElement = await page.evaluate(() => {\n      const el = document.activeElement;\n      return el ? el.closest('[data-testid=\"cookie-banner\"]') !== null : false;\n    });\n    expect(focusedElement).toBe(true);\n  });\n});\n```\n\n### Test 3: Consent State Verification\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Fconsent-state.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\n\ntest.describe('Consent State Verification', () => {\n  test('Accept All sets all consent categories to granted', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-accept-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    const cookies = await page.context().cookies();\n    const consentCookie = cookies.find(c => c.name === 'pinnacle_consent_eu');\n\n    expect(consentCookie).toBeTruthy();\n    const consentState = JSON.parse(decodeURIComponent(consentCookie.value));\n    expect(consentState.analytics).toBe(true);\n    expect(consentState.advertising).toBe(true);\n    expect(consentState.functionality).toBe(true);\n  });\n\n  test('Reject All sets all consent categories to denied', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-reject-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    const cookies = await page.context().cookies();\n    const consentCookie = cookies.find(c => c.name === 'pinnacle_consent_eu');\n\n    expect(consentCookie).toBeTruthy();\n    const consentState = JSON.parse(decodeURIComponent(consentCookie.value));\n    expect(consentState.analytics).toBe(false);\n    expect(consentState.advertising).toBe(false);\n    expect(consentState.functionality).toBe(false);\n  });\n\n  test('Reject All blocks GA4 cookies', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-reject-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Navigate to multiple pages to give GA4 time to attempt cookie setting\n    await page.goto('\u002Fproducts');\n    await page.waitForLoadState('networkidle');\n    await page.goto('\u002Fabout');\n    await page.waitForLoadState('networkidle');\n\n    const cookies = await page.context().cookies();\n    const gaCookies = cookies.filter(c => c.name.startsWith('_ga'));\n    expect(gaCookies).toHaveLength(0);\n  });\n\n  test('Granular consent: analytics only sets only analytics cookies', async ({ page }) => {\n    await page.goto('\u002F');\n\n    \u002F\u002F Open customisation layer\n    await page.locator('[data-testid=\"cookie-customise\"]').click();\n\n    \u002F\u002F Enable only analytics\n    const analyticsToggle = page.locator('[data-testid=\"consent-toggle-analytics\"]');\n    await analyticsToggle.click();\n\n    \u002F\u002F Ensure advertising is off\n    const advertisingToggle = page.locator('[data-testid=\"consent-toggle-advertising\"]');\n    const isAdvertisingChecked = await advertisingToggle.isChecked();\n    expect(isAdvertisingChecked).toBe(false);\n\n    \u002F\u002F Confirm choices\n    await page.locator('[data-testid=\"cookie-confirm-choices\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    const cookies = await page.context().cookies();\n    const cookieNames = cookies.map(c => c.name);\n\n    \u002F\u002F GA cookies should be present\n    expect(cookieNames.some(n => n.startsWith('_ga'))).toBe(true);\n\n    \u002F\u002F Advertising cookies should NOT be present\n    expect(cookieNames.some(n => n === '_fbp')).toBe(false);\n    expect(cookieNames.some(n => n === '_gcl_au')).toBe(false);\n  });\n});\n```\n\n### Test 4: Tag Firing Audit\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Ftag-firing.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\n\ntest.describe('Tag Firing Audit', () => {\n  test('GA4 tag fires only after analytics consent', async ({ page }) => {\n    let ga4Fired = false;\n\n    page.on('request', request => {\n      if (request.url().includes('google-analytics.com\u002Fg\u002Fcollect') ||\n          request.url().includes('analytics.google.com\u002Fg\u002Fcollect')) {\n        ga4Fired = true;\n      }\n    });\n\n    \u002F\u002F Load page — GA4 should not fire\n    await page.goto('\u002F');\n    await page.waitForLoadState('networkidle');\n    expect(ga4Fired, 'GA4 fired before consent').toBe(false);\n\n    \u002F\u002F Accept analytics\n    await page.locator('[data-testid=\"cookie-customise\"]').click();\n    await page.locator('[data-testid=\"consent-toggle-analytics\"]').click();\n    await page.locator('[data-testid=\"cookie-confirm-choices\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Navigate to trigger a pageview\n    await page.goto('\u002Fproducts');\n    await page.waitForLoadState('networkidle');\n    expect(ga4Fired, 'GA4 did not fire after analytics consent').toBe(true);\n  });\n\n  test('Meta Pixel does not fire when advertising is rejected', async ({ page }) => {\n    let metaPixelFired = false;\n\n    page.on('request', request => {\n      if (request.url().includes('facebook.com\u002Ftr') ||\n          request.url().includes('connect.facebook.net')) {\n        metaPixelFired = true;\n      }\n    });\n\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-reject-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    await page.goto('\u002Fproducts');\n    await page.waitForLoadState('networkidle');\n    await page.goto('\u002Fproducts\u002Fwidget-pro');\n    await page.waitForLoadState('networkidle');\n\n    expect(metaPixelFired, 'Meta Pixel fired after reject all').toBe(false);\n  });\n\n  test('Google Consent Mode sends correct consent state', async ({ page }) => {\n    const consentPings = [];\n\n    page.on('request', request => {\n      const url = request.url();\n      if (url.includes('google-analytics.com') && url.includes('gcs=')) {\n        const gcsMatch = url.match(\u002Fgcs=([^&]+)\u002F);\n        if (gcsMatch) consentPings.push(gcsMatch[1]);\n      }\n    });\n\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-reject-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Navigate to trigger consent mode ping\n    await page.goto('\u002Fproducts');\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F If consent mode pings are sent, verify denied state\n    if (consentPings.length > 0) {\n      for (const gcs of consentPings) {\n        \u002F\u002F G100 = all denied, G111 = all granted\n        expect(gcs).toContain('100');\n      }\n    }\n  });\n});\n```\n\n### Test 5: Cookie Regression Detection\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Fregression.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\nconst fs = require('fs');\n\n\u002F\u002F Baseline of known cookies — update when new cookies are intentionally added\nconst KNOWN_COOKIES = new Set([\n  'session_id',\n  'csrf_token',\n  'consent_state',\n  'pinnacle_consent_eu',\n  'load_balancer',\n  '_ga',\n  '_ga_PINNACLE',\n  '_gid',\n  '_fbp',\n  '_fbc',\n  '_gcl_au',\n  '_hjSessionUser',\n  '_hjSession',\n  'locale',\n  'currency',\n  'recently_viewed',\n  'cart_session',\n  'auth_token',\n]);\n\ntest.describe('Cookie Regression Detection', () => {\n  test('no unknown cookies after Accept All', async ({ page }) => {\n    await page.goto('\u002F');\n    await page.locator('[data-testid=\"cookie-accept-all\"]').click();\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Visit several pages to trigger all tag scenarios\n    const pages = ['\u002F', '\u002Fproducts', '\u002Fproducts\u002Fwidget-pro', '\u002Fcart', '\u002Fabout', '\u002Fblog'];\n    for (const path of pages) {\n      await page.goto(path);\n      await page.waitForLoadState('networkidle');\n    }\n\n    const cookies = await page.context().cookies();\n    const unknownCookies = cookies.filter(c => {\n      \u002F\u002F Check if cookie name matches any known prefix\n      return !Array.from(KNOWN_COOKIES).some(known =>\n        c.name === known || c.name.startsWith(known)\n      );\n    });\n\n    if (unknownCookies.length > 0) {\n      const unknownNames = unknownCookies.map(c => `${c.name} (domain: ${c.domain}, expires: ${c.expires})`);\n      console.error('Unknown cookies detected:', unknownNames);\n\n      \u002F\u002F Write to report file for review\n      fs.writeFileSync(\n        'test-results\u002Funknown-cookies.json',\n        JSON.stringify(unknownCookies, null, 2)\n      );\n    }\n\n    expect(unknownCookies, `Unknown cookies found: ${unknownCookies.map(c => c.name).join(', ')}`).toHaveLength(0);\n  });\n});\n```\n\n### Test 6: GPC Signal Handling\n\n```javascript\n\u002F\u002F tests\u002Fcookie-consent\u002Fgpc-signal.spec.js\nconst { test, expect } = require('@playwright\u002Ftest');\n\ntest.describe('Global Privacy Control Signal', () => {\n  test('GPC signal triggers automatic opt-out for California users', async ({ browser }) => {\n    \u002F\u002F Create context with GPC header\n    const context = await browser.newContext({\n      extraHTTPHeaders: {\n        'Sec-GPC': '1',\n      },\n      locale: 'en-US',\n      geolocation: { latitude: 34.0522, longitude: -118.2437 }, \u002F\u002F Los Angeles\n      permissions: ['geolocation'],\n    });\n\n    const page = await context.newPage();\n    await page.goto('\u002F');\n    await page.waitForLoadState('networkidle');\n\n    \u002F\u002F Verify advertising cookies are not set\n    const cookies = await context.cookies();\n    const adCookies = cookies.filter(c =>\n      c.name === '_fbp' || c.name === '_gcl_au' || c.name.startsWith('IDE')\n    );\n\n    expect(adCookies, 'Advertising cookies set despite GPC signal').toHaveLength(0);\n\n    await context.close();\n  });\n});\n```\n\n## CI\u002FCD Pipeline Integration\n\n### GitHub Actions Workflow\n\n```yaml\nname: Cookie Consent Compliance Tests\non:\n  push:\n    branches: [main, staging]\n  pull_request:\n    branches: [main]\n  schedule:\n    - cron: '0 6 * * 1'  # Weekly Monday 6 AM UTC\n\njobs:\n  cookie-consent-tests:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Install Playwright browsers\n        run: npx playwright install --with-deps\n\n      - name: Run cookie consent tests\n        run: npx playwright test tests\u002Fcookie-consent\u002F\n        env:\n          BASE_URL: ${{ vars.STAGING_URL }}\n\n      - name: Upload test results\n        uses: actions\u002Fupload-artifact@v4\n        if: always()\n        with:\n          name: cookie-consent-test-results\n          path: |\n            test-results\u002F\n            playwright-report\u002F\n\n      - name: Post results to Slack\n        if: failure()\n        uses: slackapi\u002Fslack-github-action@v1\n        with:\n          payload: |\n            {\n              \"text\": \"Cookie consent tests FAILED on ${{ github.ref }}. Review: ${{ github.server_url }}\u002F${{ github.repository }}\u002Factions\u002Fruns\u002F${{ github.run_id }}\"\n            }\n        env:\n          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PRIVACY_WEBHOOK }}\n```\n\n## Key Legal and Technical References\n\n- **ePrivacy Directive 2002\u002F58\u002FEC, Article 5(3)** — Legal requirement that automated tests verify\n- **CJEU Case C-673\u002F17 (Planet49)** — Active consent requirements validated by banner interaction tests\n- **CNIL Deliberation No. 2020-091** — Equal prominence requirement tested by button size comparison\n- **CCPA\u002FCPRA Cal. Civ. Code §1798.135(e)** — GPC signal handling tested in GPC test suite\n- **Playwright Documentation** — Browser automation framework for cross-browser testing\n- **WCAG 2.1 Level AA** — Accessibility requirements tested by keyboard navigation tests\n- **Google Consent Mode Documentation** — Consent state parameters validated in tag firing tests\n",{"name":5,"license":16,"metadata":50,"description":7},{"tags":51,"author":10,"domain":42,"version":52,"subdomain":53},"cookie-testing, selenium, playwright, consent-validation, regression-testing","1.0","cookie-consent-compliance","main","9b2ef9eae161c00a17241d42a388571321b33e9f","skills\u002Fprivacy\u002Fcookie-consent-testing",68,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-03-17 04:06:52",{"source":9,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add mukul975\u002FPrivacy-Data-Protection-Skills --skill cookie-consent-testing",{"tool":69,"command":70},"bunx","bunx skills add mukul975\u002FPrivacy-Data-Protection-Skills --skill cookie-consent-testing",{"tool":72,"command":73},"pnpm","pnpm dlx skills add mukul975\u002FPrivacy-Data-Protection-Skills --skill cookie-consent-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fcookie-consent-testing\u002FSKILL.md",true,[77,83,89,93,97,101],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"assets\u002Ftemplate.md","ASSET","资产文件",1389,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fcookie-consent-testing\u002Fassets\u002Ftemplate.md",{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Ffull-details.md","REFERENCE","参考文档",2546,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fkatachi\u002Fskills\u002Fdelta-details\u002Freferences\u002Ffull-details.md",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fquestion-mode.md",1753,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fkatachi\u002Fskills\u002Fdelta-details\u002Freferences\u002Fquestion-mode.md",{"path":94,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fstandards.md",1588,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fcookie-consent-testing\u002Freferences\u002Fstandards.md",{"path":98,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fworkflows.md",2196,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fcookie-consent-testing\u002Freferences\u002Fworkflows.md",{"path":102,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002Fprocess.py","SCRIPT","脚本",9632,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fcookie-consent-testing\u002Fscripts\u002Fprocess.py",[108,130,151,168,190,206],{"skillNo":109,"name":110,"nameZh":111,"description":112,"descriptionZh":113,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":122,"publishedAt":45},"01M6AG6K8R3XW10ENWH2FH18RH","workplace-email-privacy","职场邮件监控合规","Implements email and internet monitoring compliance in the workplace per Barbulescu v Romania (ECHR Grand Chamber), EDPB guidance, and national labour law. Covers acceptable use policies, legitimate expectation of privacy, proportionality testing, and content vs metadata monitoring. Keywords: email monitoring, Barbulescu, workplace privacy, internet monitoring, acceptable use policy, ECHR, proportionality.","依据 Barbulescu 诉罗马尼亚案（欧洲人权法院大法庭）、EDPB 指引及各国劳动法，实施工作场所电子邮件与互联网监控合规。涵盖可接受使用政策、合理的隐私期待、比例原则测试以及内容监控与元数据监控的区别。关键词：邮件监控、Barbulescu、职场隐私、互联网监控、可接受使用政策、ECHR、比例原则。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fworkplace-email-privacy\u002FSKILL.md",[116,119],{"categoryNo":117,"categoryName":118,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BZ8629M5XJGKJA00EMEKY5","人力资源与劳动法咨询",{"categoryNo":120,"categoryName":121,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BZ862SE2RVA3NWBPE38BDA","人力资源专员",[123,124,42,41,125,126,127,31,128,129],"email","workplace email privacy","content","data","policy","monitoring","metadata",{"skillNo":131,"name":132,"nameZh":133,"description":134,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":136,"categories":137,"keywords":144,"publishedAt":45},"01M6AG6FRCBJY7D061BJZMNV49","whistleblower-data","举报人数据保护合规","Implements data protection compliance for whistleblowing systems under EU Directive 2019\u002F1937 and GDPR. Covers anonymous reporting channels, identity protection for whistleblowers and accused persons, retention limits, access restrictions, and retaliation prevention. Addresses national transpositions and DPA guidance. Keywords: whistleblower, Directive 2019\u002F1937, anonymous reporting, identity protection, retaliation, retention, reporting channel.","依据欧盟指令 2019\u002F1937 和 GDPR，为举报（吹哨）系统实施数据保护合规。涵盖匿名举报渠道、举报人与被指控人的身份保护、保存期限限制、访问限制以及反报复措施。涉及成员国转化立法与数据保护机构（DPA）指引。关键词：举报人、指令 2019\u002F1937、匿名举报、身份保护、报复、保存期限、举报渠道。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fwhistleblower-data\u002FSKILL.md",[138,141],{"categoryNo":139,"categoryName":140,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C8829FDNTDYQRD7JSR70R9","数据保护法合规",{"categoryNo":142,"categoryName":143,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C8X73GN95MVD9ZBEFQ388G","隐私合规专员",[126,145,146,147,41,148,149,42,150],"whistleblower data","identity","reporting","data protection","gdpr","prevention",{"skillNo":152,"name":153,"nameZh":154,"description":155,"descriptionZh":156,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":157,"categories":158,"keywords":163,"publishedAt":45},"01M6AG6CJP0PW3X65HC7VP9SR9","vendor-termination-data","供应商终止数据返还与删除","Vendor termination data return and deletion procedures per GDPR Article 28(3)(g). Covers data extraction formats, deletion certification requirements, transition planning, residual data handling, and post-termination verification.","依据 GDPR 第 28(3)(g) 条的供应商终止数据返还与删除流程。涵盖数据提取格式、删除证明要求、过渡规划、残留数据处理以及终止后核验。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-termination-data\u002FSKILL.md",[159,162],{"categoryNo":160,"categoryName":161,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C86Y048YZK87F0K9M849KD","GDPR合规管理",{"categoryNo":142,"categoryName":143,"taxonomyType":23,"taxonomyTypeDesc":24},[126,164,165,36,166,149,42,167],"vendor termination data","planning","extraction","certification",{"skillNo":169,"name":170,"nameZh":171,"description":172,"descriptionZh":173,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":174,"categories":175,"keywords":180,"publishedAt":45},"01M6AG69E277DXZB2NF6KV17ZA","vendor-risk-scoring","供应商隐私风险评分","Vendor privacy risk tiering methodology for processor management. Covers scoring factors including data volume, sensitivity, transfer locations, certifications, breach history, and control maturity with weighted risk calculation and tier assignment.","面向数据处理者管理的供应商隐私风险分级方法论。涵盖数据量、敏感度、传输地点、认证情况、泄露历史和控制成熟度等评分要素，通过加权风险计算进行风险分级与等级划分。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-risk-scoring\u002FSKILL.md",[176,179],{"categoryNo":177,"categoryName":178,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0H4NZYRXY1BY7X3G295NB","供应商准入与绩效管理",{"categoryNo":142,"categoryName":143,"taxonomyType":23,"taxonomyTypeDesc":24},[181,182,183,184,185,186,187,188,42,126,189],"vendor risk scoring","risk","risk scoring","methodology","risk-scoring","assessment","transfer","certifications","processor",{"skillNo":191,"name":192,"nameZh":193,"description":194,"descriptionZh":195,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":196,"categories":197,"keywords":200,"publishedAt":45},"01M6AG6655ABFKT2BBWHCP4PAT","vendor-privacy-due-diligence","供应商隐私尽职调查","Pre-contract vendor privacy due diligence per GDPR Article 28(1). Covers risk questionnaires, technical controls assessment, certification review, data flow analysis, and documented sufficiency decisions for processor engagement.","依据 GDPR 第 28(1) 条的签约前供应商隐私尽职调查。涵盖风险问卷、技术控制评估、认证审查、数据流分析以及针对处理者合作的书面充分性决策。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-privacy-due-diligence\u002FSKILL.md",[198,199],{"categoryNo":177,"categoryName":178,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":142,"categoryName":143,"taxonomyType":23,"taxonomyTypeDesc":24},[42,201,149,202,186,203,204,126,189,182,167,205],"vendor privacy due diligence","review","onboarding","flow","analysis",{"skillNo":207,"name":208,"nameZh":209,"description":210,"descriptionZh":211,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":212,"categories":213,"keywords":216,"publishedAt":45},"01M6AG62C3VD8SYNGH4N7RHZTE","vendor-privacy-audit","供应商隐私合规审计","On-site and remote vendor audit procedures per GDPR Article 28(3)(h). Covers audit planning, evidence collection methodologies, finding classification, remediation tracking, and audit report generation for processor compliance verification.","依据 GDPR 第 28(3)(h) 条进行现场和远程供应商审计程序。涵盖审计计划、证据收集方法、问题发现分类、整改跟踪以及用于处理者合规验证的审计报告生成。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-privacy-audit\u002FSKILL.md",[214,215],{"categoryNo":160,"categoryName":161,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":142,"categoryName":143,"taxonomyType":23,"taxonomyTypeDesc":24},[217,38,42,218,36,219,41,149,220,189,221,222,223,165],"vendor privacy audit","report","audit report","remediation","collection","remediation-tracking","classification"]