test(team): strengthen tmux decoupling checks
This commit is contained in:
parent
31ae128778
commit
c66923c868
2 changed files with 3 additions and 5 deletions
|
|
@ -636,6 +636,7 @@ describe('TeamProvisioningService', () => {
|
||||||
await svc.getTeamAgentRuntimeSnapshot('runtime-team');
|
await svc.getTeamAgentRuntimeSnapshot('runtime-team');
|
||||||
|
|
||||||
expect(listTmuxPaneRuntimeInfoForCurrentPlatform).not.toHaveBeenCalled();
|
expect(listTmuxPaneRuntimeInfoForCurrentPlatform).not.toHaveBeenCalled();
|
||||||
|
expect(listTmuxPanePidsForCurrentPlatform).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('exposes providerBackendId from the live run request when available', async () => {
|
it('exposes providerBackendId from the live run request when available', async () => {
|
||||||
|
|
|
||||||
|
|
@ -54,10 +54,6 @@ async function flushReact(): Promise<void> {
|
||||||
await Promise.resolve();
|
await Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
function withoutNumberGroupSeparators(value: string | null | undefined): string {
|
|
||||||
return (value ?? '').replace(/[\s,\u00a0\u202f]/g, '');
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('TokenUsageDisplay', () => {
|
describe('TokenUsageDisplay', () => {
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
document.body.innerHTML = '';
|
document.body.innerHTML = '';
|
||||||
|
|
@ -93,8 +89,9 @@ describe('TokenUsageDisplay', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const popover = document.querySelector('[role="tooltip"]');
|
const popover = document.querySelector('[role="tooltip"]');
|
||||||
|
const expectedTotalTokens = new Intl.NumberFormat().format(2250);
|
||||||
expect(popover).toBeTruthy();
|
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).toContain('500 (25.0% of prompt input)');
|
||||||
expect(popover?.textContent).not.toContain('of context');
|
expect(popover?.textContent).not.toContain('of context');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue