mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 22:09:28 +00:00
fix(webui): sidebar selection styling, kanban active state, pointer cursors, and owner dashboard (#344)
* fix(webui): update sidebar selection styling, kanban active state, and pointer cursors * feat(webui): move dashboard to left sidebar and prevent mount animation * fix(e2e): update create-project test to click Home button in sidebar
This commit is contained in:
@@ -252,20 +252,14 @@ describe('LocalExecutor Integration Tests', () => {
|
||||
)
|
||||
|
||||
// Wait briefly for Prisma Client Extension's async submits to trigger
|
||||
await new Promise((resolve) => setTimeout(resolve, 100))
|
||||
|
||||
// Exactly 5 tasks should be running concurrently
|
||||
expect(mocks.agentChat).toHaveBeenCalledTimes(5)
|
||||
await vi.waitFor(() => expect(mocks.agentChat).toHaveBeenCalledTimes(5))
|
||||
|
||||
// Resolve 2 tasks to let the remaining 2 start
|
||||
activeResolvers[0](undefined)
|
||||
activeResolvers[1](undefined)
|
||||
|
||||
// Wait briefly for the pool to dequeue
|
||||
await new Promise((resolve) => setTimeout(resolve, 50))
|
||||
|
||||
// Now all 7 tasks should have started
|
||||
expect(mocks.agentChat).toHaveBeenCalledTimes(7)
|
||||
await vi.waitFor(() => expect(mocks.agentChat).toHaveBeenCalledTimes(7))
|
||||
|
||||
// Clean up remaining tasks
|
||||
activeResolvers.slice(2).forEach((resolve) => resolve(undefined))
|
||||
|
||||
@@ -161,7 +161,7 @@ describe('WorkflowService', () => {
|
||||
},
|
||||
})
|
||||
|
||||
const submitSpy = vi.spyOn(workflowService, 'submit')
|
||||
const submitSpy = vi.spyOn(workflowService, 'submit').mockImplementation(async () => 'mock-id')
|
||||
|
||||
const task = await prisma.workflowTask.create({
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user