test: extend frontend prompt dialog coverage
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user