修正标题栏品牌标签用例对渠道产品名的断言
Project CI / AI game creator shell Rust smoke (push) Successful in 1m37s
Project CI / AI game creator shell Rust crates (push) Successful in 1m18s
Project CI / AI game creator shell web tests (push) Has been cancelled
Project CI / Frontend tests (push) Has been cancelled
Project CI / Repository checks (push) Has been cancelled
Project CI / Native shell tests (push) Has been cancelled
Project CI / AI game creator shell Rust lane 2/2 (push) Has been cancelled
Project CI / Backend tests (push) Has been cancelled
Project CI / AI game creator shell Rust lane 1/2 (push) Has been cancelled
Project CI / AI game creator shell Rust smoke (push) Successful in 1m37s
Project CI / AI game creator shell Rust crates (push) Successful in 1m18s
Project CI / AI game creator shell web tests (push) Has been cancelled
Project CI / Frontend tests (push) Has been cancelled
Project CI / Repository checks (push) Has been cancelled
Project CI / Native shell tests (push) Has been cancelled
Project CI / AI game creator shell Rust lane 2/2 (push) Has been cancelled
Project CI / Backend tests (push) Has been cancelled
Project CI / AI game creator shell Rust lane 1/2 (push) Has been cancelled
- WindowChrome 用例改用 appMetadata 的 APP_NAME(dev 渠道为陶泥儿开发版),不再硬编码旧产品名
This commit is contained in:
@@ -4,6 +4,7 @@ import { fireEvent, render, screen } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import { APP_NAME } from '../src/app/appMetadata';
|
||||
import type { GameCreatorDirectActiveTurn } from '../src/app/types';
|
||||
import { ThemedModal } from '../src/components/modal/ThemedModal';
|
||||
import { WindowChrome } from '../src/components/WindowChrome';
|
||||
@@ -66,7 +67,7 @@ describe('WindowChrome', () => {
|
||||
);
|
||||
|
||||
expect(screen.getByRole('banner', { name: '窗口标题栏' })).toBeTruthy();
|
||||
expect(screen.getByLabelText('陶泥儿 GameAgent')).toBeTruthy();
|
||||
expect(screen.getByLabelText(`${APP_NAME} GameAgent`)).toBeTruthy();
|
||||
expect(screen.queryByLabelText('本地工作区')).toBeNull();
|
||||
expect(screen.getByText('创作工作台')).toBeTruthy();
|
||||
expect(screen.getByText('工作区内容')).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user