mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 10:02:10 +03:00
39ce850f18
* account for hash part of the URL when excluding pages and using hash extension * changelog update
14 lines
526 B
JavaScript
14 lines
526 B
JavaScript
const { test } = require('./support/harness');
|
|
const { mockRequest } = require('./support/test-utils')
|
|
const { expect } = require('@playwright/test');
|
|
|
|
test.describe('combination of hash and exclusions script extensions', () => {
|
|
test('excludes by hash part of the URL', async ({ page }) => {
|
|
const plausibleRequestMock = mockRequest(page, '/api/event')
|
|
|
|
await page.goto('/hash-exclusions.html#this/hash/should/be/ignored');
|
|
|
|
expect(await plausibleRequestMock, "should not have sent event").toBeNull()
|
|
});
|
|
});
|