Skip to content

Commit bc1906e

Browse files
committed
chore: add aria-disabled assertion
1 parent 8831559 commit bc1906e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/compass-explain-plan/src/components/explain-plan-modal.spec.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ describe('ExplainPlanModal', function () {
7373
{ preferences: { enableAIAssistant: true } }
7474
);
7575
expect(screen.getByTestId('interpret-for-me-button')).to.exist;
76+
expect(screen.getByTestId('interpret-for-me-button')).to.have.attr(
77+
'aria-disabled',
78+
'false'
79+
);
7680
});
7781

7882
it('should not show "Interpret for me" button when AI assistant is disabled', function () {

0 commit comments

Comments
 (0)