hash-exclusions.spec.js 485 B

12345678910111213
  1. const { mockRequest } = require('./support/test-utils')
  2. const { expect, test } = require('@playwright/test');
  3. test.describe('combination of hash and exclusions script extensions', () => {
  4. test('excludes by hash part of the URL', async ({ page }) => {
  5. const plausibleRequestMock = mockRequest(page, '/api/event')
  6. await page.goto('/hash-exclusions.html#this/hash/should/be/ignored');
  7. expect(await plausibleRequestMock, "should not have sent event").toBeNull()
  8. });
  9. });