test: update form input tests to expect bg-surface instead of bg-background

This commit is contained in:
Ajax Davis 2025-12-04 20:02:55 +10:00
parent e97ecfaa31
commit e384951aa8
6 changed files with 23 additions and 5 deletions

View file

@ -0,0 +1,16 @@
import reactConfig from '@tpmjs/eslint-config/react.js';
export default [
{
ignores: [
'.next/**',
'.turbo/**',
'node_modules/**',
'*.config.js',
'*.config.ts',
'next-env.d.ts',
'eslint.config.mjs',
],
},
...reactConfig,
];

View file

@ -1,6 +1,8 @@
export default {
const config = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
export default config;

View file

@ -26,7 +26,7 @@ export function ChatMessages({
<div className="text-center text-foreground-secondary">
<div className="mb-2 text-4xl">🐟</div>
<p className="text-lg">Start chatting to test TPMJS tools</p>
<p className="mt-2 text-sm">Try asking: "Tell me a fish joke"</p>
<p className="mt-2 text-sm">Try asking: &ldquo;Tell me a fish joke&rdquo;</p>
</div>
</div>
);

View file

@ -342,7 +342,7 @@ describe('Input', () => {
expect(input.className).toContain('font-sans');
expect(input.className).toContain('rounded-md');
expect(input.className).toContain('border');
expect(input.className).toContain('bg-background');
expect(input.className).toContain('bg-surface');
});
it('includes transition classes', () => {

View file

@ -436,7 +436,7 @@ describe('Select', () => {
it('should include border and background classes', () => {
render(<Select options={simpleOptions} />);
const select = screen.getByRole('combobox');
expect(select).toHaveClass('rounded-md', 'border', 'bg-background');
expect(select).toHaveClass('rounded-md', 'border', 'bg-surface');
});
it('should remove native appearance', () => {

View file

@ -437,7 +437,7 @@ describe('Textarea', () => {
it('always includes background color class', () => {
render(<Textarea data-testid="textarea" />);
const textarea = screen.getByTestId('textarea');
expect(textarea.className).toContain('bg-background');
expect(textarea.className).toContain('bg-surface');
});
it('always includes transition classes', () => {