更新测试用例以反映按钮名称从 "gpt-image-2" 修改为 "GPT Image 2.5"
Project CI / AI game creator shell Rust crates (pull_request) Successful in 3m0s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 3m50s
Project CI / Backend tests (pull_request) Successful in 5m25s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 9m9s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 10m17s
Project CI / Native shell tests (pull_request) Successful in 7m0s
Project CI / Frontend tests (pull_request) Failing after 3m41s
Project CI / Repository checks (pull_request) Successful in 3m16s
Project CI / AI game creator shell web tests (pull_request) Successful in 2m51s

This commit is contained in:
2026-09-21 22:09:17 +08:00
parent e3ba986596
commit 97b0a4b9b8
@@ -703,11 +703,11 @@ describe('快速编辑浮层的下拉弹层', () => {
fireEvent.click(
screen.getByRole('button', { name: '快速编辑模型 nanobanana2' }),
);
expect(screen.getByRole('button', { name: 'gpt-image-2' })).toBeTruthy();
expect(screen.getByRole('button', { name: 'GPT Image 2.5' })).toBeTruthy();
// 点面板内、弹层外的提示词区域:只收弹层,不动面板本身。
fireEvent.click(screen.getByLabelText('快速编辑提示词'));
expect(screen.queryByRole('button', { name: 'gpt-image-2' })).toBeNull();
expect(screen.queryByRole('button', { name: 'GPT Image 2.5' })).toBeNull();
expect(
screen.getByRole('button', { name: '快速编辑模型 nanobanana2' }),
).toBeTruthy();
@@ -739,10 +739,10 @@ describe('快速编辑浮层的下拉弹层', () => {
fireEvent.click(
screen.getByRole('button', { name: '快速编辑模型 nanobanana2' }),
);
expect(screen.getByRole('button', { name: 'gpt-image-2' })).toBeTruthy();
expect(screen.getByRole('button', { name: 'GPT Image 2.5' })).toBeTruthy();
fireEvent.keyDown(document, { key: 'Escape' });
expect(screen.queryByRole('button', { name: 'gpt-image-2' })).toBeNull();
expect(screen.queryByRole('button', { name: 'GPT Image 2.5' })).toBeNull();
});
});