Skip to content

Commit 2c1d348

Browse files
committed
refactor(web): trim unanswered question regression setup
1 parent 81e6b40 commit 2c1d348

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

‎apps/web/src/components/chat/ComposerPendingUserInputPanel.navigation.browser.test.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ function QuestionPositionProbe(props: ProbeProps) {
152152
>
153153
Choose Incremental
154154
</button>
155-
{/* Enter in the composer reaches the same advance as the disabled Next button. */}
156155
<button type="button" onClick={() => state.onAdvanceActivePendingUserInput()}>
157156
Submit
158157
</button>
@@ -161,7 +160,6 @@ function QuestionPositionProbe(props: ProbeProps) {
161160
}
162161

163162
it("stays on an unanswered question when the composer submits", async () => {
164-
using _timers = fakeTimers();
165163
await using screen = await render(
166164
<QuestionPositionProbe
167165
environmentId={EnvironmentId.make("unanswered-environment")}

‎apps/web/src/components/chat/usePendingThreadRequests.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,6 @@ export function usePendingThreadRequests(input: {
507507
}
508508
return;
509509
}
510-
// Enter in the composer lands here too. A skipped question leaves the last Submit dead.
511510
if (!activePendingProgress.canAdvance) return;
512511
setActivePendingUserInputQuestionIndex(activePendingProgress.questionIndex + 1);
513512
};

0 commit comments

Comments
 (0)