mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-12 23:54:01 +09:00
test(dashboard): anchor the addon description test on the no-toggle branch
The test asserted that the schema description renders and that neither piece of removed copy does, but the default renderer prints the description too and has never carried that copy, so the assertions held whether or not the no-toggle branch was taken: forcing hasNoToggle false left this one green while its three siblings failed. Assert the branch's own notice alongside the description. Assisted-by: LLM Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
This commit is contained in:
1 parent
b99f1a8e7a
commit
4fb90af4e5
1 file changed
+4
+4
@@ -48,6 +48,10 @@ describe("addons with no enable switch", () => {
|
||||
properties={[prop("valuesOverride")]}
|
||||
/>,
|
||||
)
|
||||
// Anchor on the no-toggle branch: the default renderer also prints the
|
||||
// description and neither forbidden phrase, so without this the assertions
|
||||
// below hold whether or not the branch was taken.
|
||||
expect(screen.getByText(/No enable switch/)).toBeTruthy()
|
||||
expect(screen.getByText(/together with addons.monitoringAgents.enabled/)).toBeTruthy()
|
||||
expect(screen.queryByText(/cannot be disabled/)).toBeNull()
|
||||
expect(screen.queryByText(/Always on/)).toBeNull()
|
||||
|
||||
Reference in new issue
Block a user