Skip to content

Commit 22f554c

Browse files
committed
test: replace [disabled] with [id] attribute selector in tests
1 parent 6133358 commit 22f554c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/tasty/tasty.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -955,12 +955,12 @@ describe('tastyGlobal() API', () => {
955955
'': '#white',
956956
':hover': '#gray.05',
957957
':focus': '#blue.05',
958-
disabled: '#gray.20',
958+
'[id]': '#gray.20',
959959
},
960960
color: {
961961
'': '#text',
962962
':hover': '#text-hover',
963-
disabled: '#text-disabled',
963+
'[id]': '#text-disabled',
964964
},
965965
transition: 'fill 0.2s, color 0.2s',
966966
});
@@ -969,8 +969,8 @@ describe('tastyGlobal() API', () => {
969969
<div>
970970
<GlobalInteractive />
971971
<div className="interactive-element">Interactive Element</div>
972-
<div data-disabled className="interactive-element">
973-
Disabled Element
972+
<div id="test-id" className="interactive-element">
973+
Element with ID
974974
</div>
975975
</div>,
976976
);
@@ -983,7 +983,7 @@ describe('tastyGlobal() API', () => {
983983

984984
expect(styleContent).toContain('.interactive-element');
985985
expect(styleContent).toContain(':hover');
986-
expect(styleContent).toContain('[data-disabled]');
986+
expect(styleContent).toContain('[id]');
987987
expect(styleContent).toContain('background-color: var(--white-color)');
988988
});
989989

0 commit comments

Comments
 (0)