Skip to content

Commit

Permalink
Update potentially bold prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Oct 24, 2024
1 parent 1a0ba5b commit 3457ce5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
6 changes: 4 additions & 2 deletions e2e-tests/tests/nextjs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@ describe('NextJS', () => {
reactComponentAnnotationsPrompted &&
(await wizardInstance.sendStdinAndWaitForOutput(
[KEYS.ENTER],
'Do you want to enable Tracing',
// "Do you want to enable Tracing", sometimes doesn't work as `Tracing` can be printed in bold.
'to track the performance of your application?',
));

const replayOptionPrompted =
tracingOptionPrompted &&
(await wizardInstance.sendStdinAndWaitForOutput(
[KEYS.ENTER],
'Do you want to enable Sentry Session Replay',
// "Do you want to enable Sentry Session Replay", sometimes doesn't work as `Sentry Session Replay` can be printed in bold.
'to get a video-like reproduction of errors during a user session?',
));

const examplePagePrompted =
Expand Down
6 changes: 4 additions & 2 deletions e2e-tests/tests/remix.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ describe('Remix', () => {
(await wizardInstance.sendStdinAndWaitForOutput(
// Selecting `yarn` as the package manager
[KEYS.DOWN, KEYS.ENTER],
'Do you want to enable Tracing',
// "Do you want to enable Tracing", sometimes doesn't work as `Tracing` can be printed in bold.
'to track the performance of your application?',
{
timeout: 240_000,
},
Expand All @@ -44,7 +45,8 @@ describe('Remix', () => {
tracingOptionPrompted &&
(await wizardInstance.sendStdinAndWaitForOutput(
[KEYS.ENTER],
'Do you want to enable Sentry Session Replay',
// "Do you want to enable Sentry Session Replay", sometimes doesn't work as `Sentry Session Replay` can be printed in bold.
'to get a video-like reproduction of errors during a user session?',
));

replayOptionPrompted &&
Expand Down
12 changes: 9 additions & 3 deletions e2e-tests/tests/sveltekit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ describe('Sveltekit', () => {

const packageManagerPrompted = await wizardInstance.waitForOutput(
'Please select your package manager.',
{
optional: true,
}
);

const tracingOptionPrompted =
packageManagerPrompted &&
(await wizardInstance.sendStdinAndWaitForOutput(
// Selecting `yarn` as the package manager
[KEYS.DOWN, KEYS.ENTER],
'Do you want to enable Tracing',
// "Do you want to enable Tracing", sometimes doesn't work as `Tracing` can be printed in bold.
'to track the performance of your application?',
{
timeout: 240_000,
}
Expand All @@ -43,7 +47,8 @@ describe('Sveltekit', () => {
tracingOptionPrompted &&
(await wizardInstance.sendStdinAndWaitForOutput(
[KEYS.ENTER],
'Do you want to enable Sentry Session Replay',
// "Do you want to enable Sentry Session Replay", sometimes doesn't work as `Sentry Session Replay` can be printed in bold.
'to get a video-like reproduction of errors during a user session?',
));

replayOptionPrompted &&
Expand Down Expand Up @@ -124,7 +129,8 @@ Sentry.init({`,
});

test('runs on prod mode correctly', async () => {

Check warning on line 131 in e2e-tests/tests/sveltekit.test.ts

View workflow job for this annotation

GitHub Actions / Lint

Test has no assertions
await checkIfRunsOnProdMode(projectDir, 'Network: use --host to expose', "preview");
// We can't use the full prompt `Network: use --host to expose` as `--host` can be printed in bold.
await checkIfRunsOnProdMode(projectDir, 'to expose', "preview");
});
});

0 comments on commit 3457ce5

Please sign in to comment.