test: extend frontend prompt dialog coverage

This commit is contained in:
cesnimda
2026-03-22 14:22:45 +01:00
parent 622bfebe6d
commit 83e732d002
+12
View File
@@ -25,3 +25,15 @@ test('renders app-owned prompt dialog', async () => {
expect(screen.getByDisplayValue('resume.pdf')).toBeInTheDocument();
expect(screen.getByRole('button', { name: /rename/i })).toBeInTheDocument();
});
test('shows prompt input helper length text', async () => {
render(
<PromptProvider>
<Demo />
</PromptProvider>,
);
fireEvent.click(screen.getByRole('button', { name: /open prompt/i }));
expect(await screen.findByText(/10\/180/i)).toBeInTheDocument();
});