mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-23 01:46:37 +08:00
fix
This commit is contained in:
@@ -249,6 +249,7 @@ function PluginListView() {
|
|||||||
<Input
|
<Input
|
||||||
value={debugInfo?.debug_url || ''}
|
value={debugInfo?.debug_url || ''}
|
||||||
readOnly
|
readOnly
|
||||||
|
aria-label={t('plugins.debugUrl')}
|
||||||
className="flex-1 min-w-0 font-mono text-xs h-8"
|
className="flex-1 min-w-0 font-mono text-xs h-8"
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
@@ -277,6 +278,7 @@ function PluginListView() {
|
|||||||
debugInfo?.plugin_debug_key || t('plugins.noDebugKey')
|
debugInfo?.plugin_debug_key || t('plugins.noDebugKey')
|
||||||
}
|
}
|
||||||
readOnly
|
readOnly
|
||||||
|
aria-label={t('plugins.debugKey')}
|
||||||
className="w-[220px] font-mono text-xs h-8"
|
className="w-[220px] font-mono text-xs h-8"
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -84,10 +84,10 @@ test.describe('authenticated app shell', () => {
|
|||||||
await page.getByRole('button', { name: 'Debug Info' }).click();
|
await page.getByRole('button', { name: 'Debug Info' }).click();
|
||||||
|
|
||||||
await expect(page.getByText('Plugin Debug Information')).toBeVisible();
|
await expect(page.getByText('Plugin Debug Information')).toBeVisible();
|
||||||
await expect(page.getByRole('textbox').nth(0)).toHaveValue(
|
await expect(page.getByRole('textbox', { name: 'Debug URL' })).toHaveValue(
|
||||||
'ws://127.0.0.1:5300/plugin/debug',
|
'ws://127.0.0.1:5300/plugin/debug',
|
||||||
);
|
);
|
||||||
await expect(page.getByRole('textbox').nth(1)).toHaveValue(
|
await expect(page.getByRole('textbox', { name: 'Debug Key' })).toHaveValue(
|
||||||
'test-debug-key',
|
'test-debug-key',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user