mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-09-24 15:49:09 +00:00
b1a0a26d01
Closes #2616 Closes #2683 Add expandable settings search with autocomplete jump-to-anchor navigation across tabs (including AI/Sync sub-tabs).
21 lines
730 B
TypeScript
21 lines
730 B
TypeScript
import assert from "node:assert/strict";
|
|
import test from "node:test";
|
|
import React from "react";
|
|
import { renderToStaticMarkup } from "react-dom/server";
|
|
|
|
import { I18nProvider } from "../../application/i18n/I18nProvider.tsx";
|
|
import { SettingsFocusProvider } from "./SettingsFocusContext.tsx";
|
|
import { SettingsSearchControl } from "./SettingsSearchControl.tsx";
|
|
|
|
test("SettingsSearchControl collapsed state shows search open button", () => {
|
|
const html = renderToStaticMarkup(
|
|
<I18nProvider locale="en">
|
|
<SettingsFocusProvider>
|
|
<SettingsSearchControl />
|
|
</SettingsFocusProvider>
|
|
</I18nProvider>,
|
|
);
|
|
assert.match(html, /id="settings-search-open"/);
|
|
assert.match(html, /Search settings/);
|
|
});
|