diff --git a/packages/compass-indexes/src/components/create-index-form/index-flow-section.spec.tsx b/packages/compass-indexes/src/components/create-index-form/index-flow-section.spec.tsx
index a11e5ae3343..22574ea61ee 100644
--- a/packages/compass-indexes/src/components/create-index-form/index-flow-section.spec.tsx
+++ b/packages/compass-indexes/src/components/create-index-form/index-flow-section.spec.tsx
@@ -2,61 +2,165 @@ import React from 'react';
import { render, screen } from '@mongodb-js/testing-library-compass';
import IndexFlowSection from './index-flow-section';
import { expect } from 'chai';
+import type { Field } from '../../modules/create-index';
describe('IndexFlowSection', () => {
- const renderComponent = (createIndexFieldsComponent?: JSX.Element) => {
+ const renderComponent = ({
+ createIndexFieldsComponent,
+ fields,
+ }: {
+ createIndexFieldsComponent?: JSX.Element;
+ fields?: Field[];
+ }) => {
render(
- - Follow the Equality, Sort, Range (ESR) Rule. This index is optimal - for queries that have this pattern: - - {/* Optimal queries, clean up with actual optimal queries in CLOUDP-311783 */} -
- {`{ awards.wins : 5, imdb.rating: {$gt : 5} }.sort({ awards.nominations : 1 }`} - - ++ + Follow the Equality, Sort, Range (ESR) Rule. This index is + optimal for queries that have this pattern: + + {/* Optimal queries */} +
+ {optimalQueries} + + + + Learn More + + > + )} +