-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathtest.ts
More file actions
21 lines (15 loc) · 600 Bytes
/
test.ts
File metadata and controls
21 lines (15 loc) · 600 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { expect } from '@playwright/test';
import { sentryTest } from '../../../../utils/fixtures';
import { shouldSkipTracingTest } from '../../../../utils/helpers';
sentryTest('warns if multiple integrations are used', async ({ getLocalTestUrl, page }) => {
if (shouldSkipTracingTest()) {
sentryTest.skip();
}
const msgs: string[] = [];
page.on('console', msg => {
msgs.push(msg.text());
});
const url = await getLocalTestUrl({ testDir: __dirname });
await page.goto(url);
expect(msgs).toEqual(['Multiple browserTracingIntegration instances are not supported.']);
});