feat: release 2.2.0 with PC-only tests and execution reliability fixes

Unify task scheduling and queue state, fix Android input and observation recovery, preserve screenshot paths, and match final review criteria accurately. Add collapsible copyable results and publish the complete 2.1.0 upgrade notes. Validation: 3189 backend tests, 326 frontend tests, 24 client tests, production build and quality gates.
This commit is contained in:
chenmingxuan committed 2026-10-27 01:13:41 +08:00
1 parent fac4ccb760
commit be6e8c2abd
79 files changed
+2263 -277

No files matched your search

@@ -75,4 +75,23 @@ describe('TaskPluginsComponent', () => {
expect(fixture.nativeElement.textContent).toContain('重试');
expect(fixture.componentInstance.automatic).toBeTrue();
});
it('filters PC-compatible plugins and removes incompatible manual choices on target change', () => {
const fixture = TestBed.createComponent(TaskPluginsComponent), component=fixture.componentInstance;
component.toggle();
const profile={name:'default',label:'默认',authorized:true,is_default:true};
const plugin=(id:string,targets:string[])=>({enabled:true,manifest:{id,name:id,targets},profiles:[profile]});
http.expectOne('/api/plugins').flush({plugins:[plugin('android-only',['android']),plugin('mixed-only',['mixed']),plugin('desktop',['computer'])]});
component.automatic=false;component.selected={'android-only':'default'};
const emitted=jasmine.createSpy('changed');component.changed.subscribe(emitted);
fixture.componentRef.setInput('target','computer');fixture.detectChanges();
expect(component.available().map(p=>p.manifest.id)).toEqual(['desktop']);
expect(emitted).toHaveBeenCalledWith({plugins:[]});
expect(fixture.nativeElement.textContent).toContain('画面观察');
const choice:HTMLInputElement=fixture.nativeElement.querySelector('.choice input');choice.click();fixture.detectChanges();
expect(emitted).toHaveBeenCalledWith({plugins:[{id:'desktop',profile:'default'}]});
fixture.componentRef.setInput('target','android');fixture.detectChanges();
expect(component.available().map(p=>p.manifest.id)).toEqual(['android-only','mixed-only']);
expect(component.selected).toEqual({});
});
});