Skip to content

Commit 8123ca7

Browse files
cliftonmcintoshclaude
authored andcommitted
Fix CSS color assertion incompatibility with Node 24 jsdom
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7d4579b commit 8123ca7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/javascript/__tests__/validated_form.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ describe('NonDrivingContactMediumWarning', () => {
146146
$(() => {
147147
try {
148148
expect(checkboxContainer.css('background-color')).not.toBe('rgb(255, 248, 225)')
149-
expect(milesDrivenInput.css('border')).not.toBe('2px solid #ffc107')
149+
expect(milesDrivenInput.css('border')).not.toBe('2px solid rgb(255, 193, 7)')
150150

151151
component.warningHighlightUI('A warning message')
152152

153153
expect(checkboxContainer.css('background-color')).toBe('rgb(255, 248, 225)')
154-
expect(milesDrivenInput.css('border')).toBe('2px solid #ffc107')
154+
expect(milesDrivenInput.css('border')).toBe('2px solid rgb(255, 193, 7)')
155155
done()
156156
} catch (error) {
157157
done(error)
@@ -163,17 +163,17 @@ describe('NonDrivingContactMediumWarning', () => {
163163
$(() => {
164164
try {
165165
expect(checkboxContainer.css('background-color')).not.toBe('rgb(255, 248, 225)')
166-
expect(milesDrivenInput.css('border')).not.toBe('2px solid #ffc107')
166+
expect(milesDrivenInput.css('border')).not.toBe('2px solid rgb(255, 193, 7)')
167167

168168
component.warningHighlightUI('A warning message')
169169

170170
expect(checkboxContainer.css('background-color')).toBe('rgb(255, 248, 225)')
171-
expect(milesDrivenInput.css('border')).toBe('2px solid #ffc107')
171+
expect(milesDrivenInput.css('border')).toBe('2px solid rgb(255, 193, 7)')
172172

173173
component.warningHighlightUI()
174174

175175
expect(checkboxContainer.css('background-color')).not.toBe('rgb(255, 248, 225)')
176-
expect(milesDrivenInput.css('border')).not.toBe('2px solid #ffc107')
176+
expect(milesDrivenInput.css('border')).not.toBe('2px solid rgb(255, 193, 7)')
177177

178178
done()
179179
} catch (error) {

0 commit comments

Comments
 (0)