Personal Telegram developer console for GitHub

test(ops): require actionable provider live probe

davoodmehraban89 committed Oct 4, 2026 at 17:50 UTC 6a6df3d04f1b45eb7c1c3ab6e21d855100459f55
1 file changed +13
test/ops-console.test.js
+13
@@ -201,6 +201,19 @@ describe('Nexa Dev Bot - operational menu surfaces', () => {
201 }
202 });
203
204 + it('configuration provider report offers an in-context live GitHub probe with configuration recovery', async () => {
205 + const { github, diagnostics } = diagnosticsForMenus();
206 + const menu = new OpsMenuManager(github, diagnostics);
207 +
208 + const providers = await menu.renderByCallback('config:providers');
209 + assert.ok(callbacks(providers).includes('config:github'), 'provider report must offer a direct live GitHub probe');
210 +
211 + const probe = await menu.renderByCallback('config:github');
212 + assert.match(probe.text, /READ زنده موفق/);
213 + assert.ok(callbacks(probe).includes('config:github'), 'live probe must support refresh in the same context');
214 + assert.ok(callbacks(probe).includes('menu:settings'), 'live probe must recover to configuration, not strand the owner in tools');
215 + });
216 +
217 it('never renders configured secrets in operational pages', async () => {
218 const { github, diagnostics } = diagnosticsForMenus();
219 const menu = new OpsMenuManager(github, diagnostics);