Skip to content

Commit 2c046e2

Browse files
authored
fix(compass): keep button labeling consistent w/ lowercase (#7050)
fix: keep button labeling consistent w/ lowercase
1 parent d5ea173 commit 2c046e2

File tree

7 files changed

+25
-42
lines changed

7 files changed

+25
-42
lines changed

package-lock.json

Lines changed: 17 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-aggregations/src/components/add-stage/add-stage.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('AddStage', function () {
2323
renderAddStage({ variant: 'icon' });
2424
const button = screen.getByTestId('add-stage-icon-button');
2525
expect(() => {
26-
within(button).getByText('Add Stage');
26+
within(button).getByText('Add stage');
2727
}).to.throw;
2828
});
2929

@@ -41,7 +41,7 @@ describe('AddStage', function () {
4141
it('renders text button', function () {
4242
renderAddStage({ variant: 'button' });
4343
const button = screen.getByTestId('add-stage');
44-
expect(within(button).getByText('Add Stage')).to.exist;
44+
expect(within(button).getByText('Add stage')).to.exist;
4545
});
4646

4747
it('renders help link when stage is not last', function () {

packages/compass-aggregations/src/components/add-stage/add-stage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const AddStage = ({ onAddStage, variant }: AddStageProps) => {
4242
variant="primary"
4343
leftGlyph={<Icon glyph="Plus"></Icon>}
4444
>
45-
Add Stage
45+
Add stage
4646
</Button>
4747

4848
<div className={linkContainerStyles}>

packages/compass-aggregations/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/index.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('PipelineBuilderUIWorkspace [Component]', function () {
3636
await renderPipelineBuilderUIWorkspace();
3737
const buttons = screen.getAllByTestId('add-stage');
3838
expect(buttons.length).to.equal(1);
39-
expect(buttons[0]).to.have.text('Add Stage');
39+
expect(buttons[0]).to.have.text('Add stage');
4040
});
4141

4242
it('adds a stage to the start of pipeline when first icon button is clicked', async function () {
@@ -95,7 +95,7 @@ describe('PipelineBuilderUIWorkspace [Component]', function () {
9595
await renderPipelineBuilderUIWorkspace({}, { pipeline: [] });
9696
const button = screen.getByTestId('add-stage');
9797
expect(button).to.exist;
98-
expect(button).to.have.text('Add Stage');
98+
expect(button).to.have.text('Add stage');
9999
});
100100

101101
it('adds a stage when (text) button is clicked', async function () {

packages/compass-crud/src/components/document-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ const DocumentList: React.FunctionComponent<DocumentListProps> = (props) => {
447447
variant="primary"
448448
size="small"
449449
>
450-
Import Data
450+
Import data
451451
</Button>
452452
)
453453
}

packages/compass-schema-validation/src/components/validation-states.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export function ValidationStates({
264264
variant={ButtonVariant.PrimaryOutline}
265265
size="small"
266266
>
267-
Add Rule
267+
Add rule
268268
</Button>
269269
</div>
270270
}

packages/compass-schema/src/components/compass-schema.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ const InitialScreen: React.FunctionComponent<{
269269
variant="primary"
270270
size="small"
271271
>
272-
Analyze Schema
272+
Analyze schema
273273
</Button>
274274
}
275275
callToActionLink={

0 commit comments

Comments
 (0)