Preserve partial creation replies on stream failure
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
kdletters
2026-05-05 11:31:50 +08:00
parent 100fee7e7a
commit 995661e7cc
299 changed files with 13805 additions and 1429 deletions

View File

@@ -107,12 +107,17 @@ test('creation hub reflects updated draft title summary and counts after rerende
const rpgButton = screen.getByRole('button', { name: //u });
const puzzleButton = screen.getByRole('button', { name: /.*/u });
const match3dButton = screen.getByRole('button', { name: //u });
const squareHoleButton = screen.getByRole('button', { name: //u });
expect(
rpgButton.compareDocumentPosition(puzzleButton) &
Node.DOCUMENT_POSITION_FOLLOWING,
).toBeTruthy();
expect((rpgButton as HTMLButtonElement).disabled).toBe(false);
expect((match3dButton as HTMLButtonElement).disabled).toBe(false);
expect((squareHoleButton as HTMLButtonElement).disabled).toBe(false);
expect(
within(squareHoleButton).getAllByText('反直觉形状分拣').length,
).toBeGreaterThan(0);
expect(
within(match3dButton).getAllByText('经典消除玩法').length,
).toBeGreaterThan(0);