Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ it.each(
],
});
}
// A daemon without the brand route (#11244): a 404 settles the
// provider's brand fetch immediately instead of arming its retry
// timer.
if (url.pathname === '/brand') {
return new Response('not found', { status: 404 });
}
if (url.pathname.endsWith('/load')) {
loadBodies.push(JSON.parse(String(init?.body)));
const n = loadBodies.length;
Expand Down Expand Up @@ -196,7 +202,13 @@ it.each(
);
root.render(strictMode ? <StrictMode>{tree}</StrictMode> : tree);
});
expect(calls).toEqual(['GET /capabilities']);
// The workspace provider fetches the brand beside capabilities
// (#11244); StrictMode's remount issues that brand fetch twice.
expect(calls).toEqual(
strictMode
? ['GET /capabilities', 'GET /brand', 'GET /brand']
: ['GET /capabilities', 'GET /brand'],
);
expect(observeLiveStateSupport).not.toHaveBeenCalled();
await act(async () => {
releaseCapabilities();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ function builtInMark(): Element | null {

beforeEach(() => {
window.localStorage.clear();
// Mount above the compact footer breakpoint (344px): below it the version
// label leaves the row (#11470), and the brand tooltip assertions query
// that label's title.
window.localStorage.setItem('qwen-code-web-shell-sidebar-width', '360');
container = document.createElement('div');
document.body.appendChild(container);
root = createRoot(container);
Expand Down
Loading