chore(site): drop DOM assertions from the unavailable override story play function

This commit is contained in:
Michael Suchacz committed 2026-09-20 18:48:49 +00:00
1 parent 0ec37f6492
commit 409eac5211
1 file changed
+2 -17
@@ -122,6 +122,8 @@ export const ReadOnly: Story = {
await expect(button).toBeDisabled();
},
};
// The title generation section must show its own "skipped" warning and the
// general section the generic "ignored" one; the screenshot covers both.
export const UnavailableSavedModels: Story = {
args: {
overrides: [
@@ -129,23 +131,6 @@ export const UnavailableSavedModels: Story = {
{ context: "title_generation", model_config_id: "model-gone" },
],
},
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
// Title generation fails hard on a broken override, so its warning must
// not claim the model is ignored in favor of default selection.
const titleSection = canvas.getByRole("form", {
name: "Title generation",
});
await expect(
within(titleSection).getByText(/summaries will be skipped/),
).toBeVisible();
const generalSection = canvas.getByRole("form", {
name: "General subagent",
});
await expect(
within(generalSection).getByText(/will be ignored/),
).toBeVisible();
},
};
export const NoModels: Story = {