Skip to content

Commit a1082c0

Browse files
fix(e2e): Remove auth token from launch params (#4876)
1 parent bfbb0a1 commit a1082c0

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

dev-packages/e2e-tests/maestro/utils/launchTestAppClear.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ jsEngine: graaljs
88
- launchApp:
99
clearState: true
1010
arguments:
11-
sentryAuthToken: ${SENTRY_AUTH_TOKEN}
1211
replaysOnErrorSampleRate: ${replaysOnErrorSampleRate}
1312

1413
- runFlow: assertTestReady.yml

dev-packages/e2e-tests/src/EndToEndTests.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,9 @@
11
import * as Sentry from '@sentry/react-native';
22
import * as React from 'react';
33
import { Text, View } from 'react-native';
4-
import { LaunchArguments } from "react-native-launch-arguments";
54

65
const E2E_TESTS_READY_TEXT = 'E2E Tests Ready';
76

8-
const getSentryAuthToken = ():
9-
| { token: string }
10-
| { error: string } => {
11-
const { sentryAuthToken } = LaunchArguments.value<{
12-
sentryAuthToken: unknown;
13-
}>();
14-
15-
if (typeof sentryAuthToken !== 'string') {
16-
return { error: 'Sentry Auth Token is required' };
17-
}
18-
19-
if (sentryAuthToken.length === 0) {
20-
return { error: 'Sentry Auth Token must not be empty' };
21-
}
22-
23-
return { token: sentryAuthToken };
24-
};
25-
267
const EndToEndTestsScreen = (): JSX.Element => {
278
const [isReady, setIsReady] = React.useState(false);
289
const [eventId, setEventId] = React.useState<string | null>(null);

0 commit comments

Comments
 (0)