test: remove unreachable cases and strengthen weak assertions
This commit is contained in:
1 parent
169062be11
commit
abfe510ce1
25 files changed
+64
-302
No files matched your search
@@ -44,7 +44,7 @@ describe("Runtime configuration settings", () => {
|
||||
expect([...paths, visibilityOnly].sort()).toEqual([...runtimeConfigKeys].sort());
|
||||
});
|
||||
|
||||
it("keeps local service controls available when tool families are disabled", () => {
|
||||
it("keeps chat permissions and local services available when tool families are disabled", () => {
|
||||
const payload = runtimeSettings();
|
||||
renderSettingsView({ initialSection: "advanced", initialSettings: {
|
||||
...payload, runtime_config: {
|
||||
@@ -53,11 +53,9 @@ describe("Runtime configuration settings", () => {
|
||||
},
|
||||
} });
|
||||
expect(screen.getByRole("switch", { name: "Local services" })).toBeVisible();
|
||||
});
|
||||
|
||||
it("keeps chat permission settings discoverable within the advanced page", () => {
|
||||
renderSettingsView({ initialSection: "advanced", initialSettings: runtimeSettings() });
|
||||
expect(screen.getByRole("switch", { name: "Local services" })).toBeInTheDocument();
|
||||
expect(screen.getByText("Default access")).toBeVisible();
|
||||
expect(screen.getByRole("button", { name: "Default Permission" })).toBeVisible();
|
||||
expect(screen.getByRole("button", { name: "Full Access" })).toBeVisible();
|
||||
});
|
||||
|
||||
it("places common settings in their feature pages and reserves advanced for low-frequency controls", () => {
|
||||
|
||||
Reference in new issue
Block a user