test(team): strengthen tmux decoupling checks

This commit is contained in:
iliya 2026-04-28 17:14:14 +03:00
parent 31ae128778
commit c66923c868
2 changed files with 3 additions and 5 deletions

View file

@ -636,6 +636,7 @@ describe('TeamProvisioningService', () => {
await svc.getTeamAgentRuntimeSnapshot('runtime-team');
expect(listTmuxPaneRuntimeInfoForCurrentPlatform).not.toHaveBeenCalled();
expect(listTmuxPanePidsForCurrentPlatform).not.toHaveBeenCalled();
});
it('exposes providerBackendId from the live run request when available', async () => {

View file

@ -54,10 +54,6 @@ async function flushReact(): Promise<void> {
await Promise.resolve();
}
function withoutNumberGroupSeparators(value: string | null | undefined): string {
return (value ?? '').replace(/[\s,\u00a0\u202f]/g, '');
}
describe('TokenUsageDisplay', () => {
afterEach(() => {
document.body.innerHTML = '';
@ -93,8 +89,9 @@ describe('TokenUsageDisplay', () => {
});
const popover = document.querySelector('[role="tooltip"]');
const expectedTotalTokens = new Intl.NumberFormat().format(2250);
expect(popover).toBeTruthy();
expect(withoutNumberGroupSeparators(popover?.textContent)).toContain('2250');
expect(popover?.textContent).toContain(expectedTotalTokens);
expect(popover?.textContent).toContain('500 (25.0% of prompt input)');
expect(popover?.textContent).not.toContain('of context');