feat(ui): name controls and preserve modal state
This commit is contained in:
@@ -235,8 +235,9 @@ test("AI cover letter suggestions use the linked CV and require explicit apply",
|
||||
|
||||
render(<ApplicationCoverLetterSection jobId={7} />);
|
||||
expect(await screen.findByText(/application's full job advert and analysis/i)).toBeInTheDocument();
|
||||
const assistantSelects = screen.getAllByRole("combobox");
|
||||
fireEvent.mouseDown(assistantSelects[assistantSelects.length - 1]);
|
||||
expect(screen.getByRole("combobox", { name: "Action" })).toBeVisible();
|
||||
expect(screen.getByRole("combobox", { name: "Tone" })).toBeVisible();
|
||||
fireEvent.mouseDown(screen.getByRole("combobox", { name: "Document language" }));
|
||||
fireEvent.click(await screen.findByRole("option", { name: /Norsk bokmål/i }));
|
||||
fireEvent.click(screen.getByRole("button", { name: "Generate" }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user