mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-07 09:13:04 +02:00
Change names of community MQTT
This commit is contained in:
@@ -14,7 +14,7 @@ const BotCodeEditor = lazy(() =>
|
|||||||
|
|
||||||
const TYPE_LABELS: Record<string, string> = {
|
const TYPE_LABELS: Record<string, string> = {
|
||||||
mqtt_private: 'Private MQTT',
|
mqtt_private: 'Private MQTT',
|
||||||
mqtt_community: 'Community MQTT/mesh2mqtt',
|
mqtt_community: 'meshtomqtt/LetsMesh/MeshRank',
|
||||||
bot: 'Bot',
|
bot: 'Bot',
|
||||||
webhook: 'Webhook',
|
webhook: 'Webhook',
|
||||||
apprise: 'Apprise',
|
apprise: 'Apprise',
|
||||||
@@ -22,7 +22,7 @@ const TYPE_LABELS: Record<string, string> = {
|
|||||||
|
|
||||||
const TYPE_OPTIONS = [
|
const TYPE_OPTIONS = [
|
||||||
{ value: 'mqtt_private', label: 'Private MQTT' },
|
{ value: 'mqtt_private', label: 'Private MQTT' },
|
||||||
{ value: 'mqtt_community', label: 'Community MQTT/mesh2mqtt' },
|
{ value: 'mqtt_community', label: 'meshtomqtt/LetsMesh/MeshRank' },
|
||||||
{ value: 'bot', label: 'Bot' },
|
{ value: 'bot', label: 'Bot' },
|
||||||
{ value: 'webhook', label: 'Webhook' },
|
{ value: 'webhook', label: 'Webhook' },
|
||||||
{ value: 'apprise', label: 'Apprise' },
|
{ value: 'apprise', label: 'Apprise' },
|
||||||
|
|||||||
@@ -84,7 +84,9 @@ describe('SettingsFanoutSection', () => {
|
|||||||
fireEvent.click(screen.getByRole('button', { name: 'Add Integration' }));
|
fireEvent.click(screen.getByRole('button', { name: 'Add Integration' }));
|
||||||
|
|
||||||
expect(screen.getByRole('menuitem', { name: 'Private MQTT' })).toBeInTheDocument();
|
expect(screen.getByRole('menuitem', { name: 'Private MQTT' })).toBeInTheDocument();
|
||||||
expect(screen.getByRole('menuitem', { name: 'Community MQTT/mesh2mqtt' })).toBeInTheDocument();
|
expect(
|
||||||
|
screen.getByRole('menuitem', { name: 'meshtomqtt/LetsMesh/MeshRank' })
|
||||||
|
).toBeInTheDocument();
|
||||||
expect(screen.getByRole('menuitem', { name: 'Webhook' })).toBeInTheDocument();
|
expect(screen.getByRole('menuitem', { name: 'Webhook' })).toBeInTheDocument();
|
||||||
expect(screen.getByRole('menuitem', { name: 'Apprise' })).toBeInTheDocument();
|
expect(screen.getByRole('menuitem', { name: 'Apprise' })).toBeInTheDocument();
|
||||||
expect(screen.getByRole('menuitem', { name: 'Bot' })).toBeInTheDocument();
|
expect(screen.getByRole('menuitem', { name: 'Bot' })).toBeInTheDocument();
|
||||||
|
|||||||
Reference in New Issue
Block a user