Skip to content

Commit 40fe2a0

Browse files
authored
test(remix): Skip all firefox tests (#8662)
1 parent 5c60612 commit 40fe2a0

File tree

4 files changed

+21
-38
lines changed

4 files changed

+21
-38
lines changed

packages/remix/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
"test:integration:ci": "run-s test:integration:clean test:integration:prepare test:integration:client:ci test:integration:server",
7474
"test:integration:prepare": "(cd test/integration && yarn)",
7575
"test:integration:clean": "(cd test/integration && rimraf .cache node_modules build)",
76-
"test:integration:client": "yarn playwright install-deps && yarn playwright test test/integration/test/client/",
77-
"test:integration:client:ci": "yarn test:integration:client --browser='all' --reporter='line'",
76+
"test:integration:client": "yarn playwright install-deps && yarn playwright test test/integration/test/client/ --project='chromium'",
77+
"test:integration:client:ci": "yarn test:integration:client --reporter='line'",
7878
"test:integration:server": "export NODE_OPTIONS='--stack-trace-limit=25' && jest --config=test/integration/jest.config.js test/integration/test/server/",
7979
"test:unit": "jest",
8080
"test:watch": "jest --watch",

packages/remix/playwright.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { PlaywrightTestConfig } from '@playwright/test';
2+
import { devices } from '@playwright/test';
23

34
const config: PlaywrightTestConfig = {
45
retries: 0,
@@ -14,6 +15,21 @@ const config: PlaywrightTestConfig = {
1415
command: '(cd test/integration/ && yarn build && yarn start)',
1516
port: 3000,
1617
},
18+
projects: [
19+
{
20+
name: 'chromium',
21+
use: devices['Desktop Chrome'],
22+
},
23+
{
24+
name: 'webkit',
25+
use: devices['Desktop Safari'],
26+
},
27+
{
28+
name: 'firefox',
29+
grep: /@firefox/i,
30+
use: devices['Desktop Firefox'],
31+
},
32+
],
1733
};
1834

1935
export default config;

packages/remix/test/integration/test/client/meta-tags.test.ts

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ import { test, expect } from '@playwright/test';
22
import { getFirstSentryEnvelopeRequest } from './utils/helpers';
33
import { Event } from '@sentry/types';
44

5-
test('should inject `sentry-trace` and `baggage` meta tags inside the root page.', async ({ page, browserName }) => {
6-
// This test is flaky on firefox
7-
// https://github.com/getsentry/sentry-javascript/issues/8398
8-
if (browserName === 'firefox') {
9-
test.skip();
10-
}
11-
5+
test('should inject `sentry-trace` and `baggage` meta tags inside the root page.', async ({ page }) => {
126
await page.goto('/');
137

148
const sentryTraceTag = await page.$('meta[name="sentry-trace"]');
@@ -22,16 +16,7 @@ test('should inject `sentry-trace` and `baggage` meta tags inside the root page.
2216
expect(sentryBaggageContent).toEqual(expect.any(String));
2317
});
2418

25-
test('should inject `sentry-trace` and `baggage` meta tags inside a parameterized route.', async ({
26-
page,
27-
browserName,
28-
}) => {
29-
// This test is flaky on firefox
30-
// https://github.com/getsentry/sentry-javascript/issues/8398
31-
if (browserName === 'firefox') {
32-
test.skip();
33-
}
34-
19+
test('should inject `sentry-trace` and `baggage` meta tags inside a parameterized route.', async ({ page }) => {
3520
await page.goto('/loader-json-response/0');
3621

3722
const sentryTraceTag = await page.$('meta[name="sentry-trace"]');
@@ -49,12 +34,6 @@ test('should send transactions with corresponding `sentry-trace` and `baggage` i
4934
page,
5035
browserName,
5136
}) => {
52-
// This test is flaky on firefox
53-
// https://github.com/getsentry/sentry-javascript/issues/8398
54-
if (browserName === 'firefox') {
55-
test.skip();
56-
}
57-
5837
const envelope = await getFirstSentryEnvelopeRequest<Event>(page, '/');
5938

6039
const sentryTraceTag = await page.$('meta[name="sentry-trace"]');
@@ -71,14 +50,7 @@ test('should send transactions with corresponding `sentry-trace` and `baggage` i
7150

7251
test('should send transactions with corresponding `sentry-trace` and `baggage` inside a parameterized route', async ({
7352
page,
74-
browserName,
7553
}) => {
76-
// This test is flaky on firefox
77-
// https://github.com/getsentry/sentry-javascript/issues/8398
78-
if (browserName === 'firefox') {
79-
test.skip();
80-
}
81-
8254
const envelope = await getFirstSentryEnvelopeRequest<Event>(page, '/loader-json-response/0');
8355

8456
const sentryTraceTag = await page.$('meta[name="sentry-trace"]');

packages/remix/test/integration/test/client/pageload.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ import { getFirstSentryEnvelopeRequest } from './utils/helpers';
44
import { test, expect } from '@playwright/test';
55
import { Event } from '@sentry/types';
66

7-
test('should add `pageload` transaction on load.', async ({ page, browserName }) => {
8-
// This test is flaky on firefox
9-
if (browserName === 'firefox') {
10-
test.skip();
11-
}
12-
7+
test('should add `pageload` transaction on load.', async ({ page }) => {
138
const envelope = await getFirstSentryEnvelopeRequest<Event>(page, '/');
149

1510
expect(envelope.contexts?.trace.op).toBe('pageload');

0 commit comments

Comments
 (0)