mirror of
https://github.com/plausible/analytics.git
synced 2024-11-26 00:24:44 +03:00
43bf7dd09f
* Use user-agent instead of screen_width to get device type Co-authored-by: eriknakata <erik.nakata5@gmail.com> * Fix credo * Log on unhandled UAInspector device type * Make 'browser' the default tab in devices report * Remove device tooltip * Remove screen_width from ingestion completely * Remove browserstack harness, run playwright directly * Select meta key based on OS platform * Run CI tests in parallel * Improve device match readability * Add changelog --------- Co-authored-by: eriknakata <erik.nakata5@gmail.com>
13 lines
485 B
JavaScript
13 lines
485 B
JavaScript
const { mockRequest } = require('./support/test-utils')
|
|
const { expect, test } = 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()
|
|
});
|
|
});
|