Skip to content

Commit

Permalink
test(remix): Re-enable Remix E2E tests on v7 (#10816)
Browse files Browse the repository at this point in the history
Fixes and re-enables flaky Remix E2E tests for v7 branch.
Ref: #10290
  • Loading branch information
onurtemizkan authored Feb 27, 2024
1 parent c1ebe3d commit 811eaa4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1055,9 +1055,8 @@ jobs:
'node-express-app',
'create-react-app',
'create-next-app',
# disabling remix e2e tests because of flakes
# 'create-remix-app',
# 'create-remix-app-v2',
'create-remix-app',
'create-remix-app-v2',
'debug-id-sourcemaps',
'nextjs-app-dir',
'nextjs-14',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { StrictMode, startTransition, useEffect } from 'react';
import { hydrateRoot } from 'react-dom/client';

Sentry.init({
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: window.ENV.SENTRY_DSN,
integrations: [
new Sentry.BrowserTracing({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ installGlobals();
const ABORT_DELAY = 5_000;

Sentry.init({
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: process.env.E2E_TEST_DSN,
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ module.exports = {
// serverBuildPath: 'build/index.js',
// publicPath: '/build/',
serverModuleFormat: 'cjs',
entry,
};
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ test('Sends a client-side exception to Sentry', async ({ page }) => {
.toBe(200);
});

// Skipping test because of flake
test.skip('Sends a pageload transaction to Sentry', async ({ page }) => {
test('Sends a pageload transaction to Sentry', async ({ page }) => {
await page.goto('/');

const recordedTransactionsHandle = await page.waitForFunction(() => {
Expand Down Expand Up @@ -107,8 +106,7 @@ test.skip('Sends a pageload transaction to Sentry', async ({ page }) => {
expect(hadPageLoadTransaction).toBe(true);
});

// Skipped because of test flake
test.skip('Sends a navigation transaction to Sentry', async ({ page }) => {
test('Sends a navigation transaction to Sentry', async ({ page }) => {
await page.goto('/');

// Give pageload transaction time to finish
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { StrictMode, startTransition, useEffect } from 'react';
import { hydrateRoot } from 'react-dom/client';

Sentry.init({
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: window.ENV.SENTRY_DSN,
integrations: [
new Sentry.BrowserTracing({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { renderToPipeableStream } from 'react-dom/server';
const ABORT_DELAY = 5_000;

Sentry.init({
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: process.env.E2E_TEST_DSN,
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const authToken = process.env.E2E_TEST_AUTH_TOKEN;
const sentryTestOrgSlug = process.env.E2E_TEST_SENTRY_ORG_SLUG;
const sentryTestProject = process.env.E2E_TEST_SENTRY_TEST_PROJECT;

// skipping flaky test
test.skip('Sends a client-side exception to Sentry', async ({ page }) => {
test('Sends a client-side exception to Sentry', async ({ page }) => {
await page.goto('/');

const exceptionButton = page.locator('id=exception-button');
Expand Down Expand Up @@ -48,8 +47,7 @@ test.skip('Sends a client-side exception to Sentry', async ({ page }) => {
.toBe(200);
});

// skipping flaky test
test.skip('Sends a pageload transaction to Sentry', async ({ page }) => {
test('Sends a pageload transaction to Sentry', async ({ page }) => {
await page.goto('/');

const recordedTransactionsHandle = await page.waitForFunction(() => {
Expand Down

0 comments on commit 811eaa4

Please sign in to comment.