Skip to content

Commit cd9de5b

Browse files
fix indexes-toolbar.spec
1 parent f6cee34 commit cd9de5b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/compass-indexes/src/components/indexes-toolbar/indexes-toolbar.spec.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -359,21 +359,15 @@ describe('IndexesToolbar Component', function () {
359359
beforeEach(function () {
360360
renderIndexesToolbar({
361361
isReadonlyView: true,
362-
onIndexViewChanged: onChangeViewCallback,
363362
serverVersion: '8.1.0',
364363
});
365364
});
366365

367-
it('it renders tabs with Indexes disabled and automatically selects Search Indexes', function () {
366+
it('it renders tabs with Indexes disabled', function () {
368367
const indexesTab = screen.getByText('Indexes');
369368
expect(indexesTab).to.be.visible;
370369
expect(indexesTab.closest('button')).to.have.attr('disabled');
371-
372370
expect(screen.getByText('Search Indexes')).to.be.visible;
373-
expect(onChangeViewCallback).to.have.been.calledOnce;
374-
expect(onChangeViewCallback.firstCall.args[0]).to.equal(
375-
'search-indexes'
376-
);
377371
});
378372
});
379373
});

0 commit comments

Comments
 (0)