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 c751a056a9
commit 5c2cc529ef
6 changed files with 23 additions and 5 deletions

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', () => {