mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +00:00
feat: Add ESLint rule to enforce sentence case in button text (#34434)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -849,7 +849,7 @@ class AnnotationLayer extends PureComponent {
|
||||
buttonSize="xsmall"
|
||||
onClick={() => this.setState({ color: AUTOMATIC_COLOR })}
|
||||
>
|
||||
{t('Automatic Color')}
|
||||
{t('Automatic color')}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -220,7 +220,7 @@ test('keeps apply disabled when missing required fields', async () => {
|
||||
expect(await screen.findByText('Chart A')).toBeInTheDocument();
|
||||
userEvent.click(screen.getByText('Chart A'));
|
||||
await screen.findByText(/title column/i);
|
||||
userEvent.click(screen.getByRole('button', { name: 'Automatic Color' }));
|
||||
userEvent.click(screen.getByRole('button', { name: 'Automatic color' }));
|
||||
userEvent.click(
|
||||
screen.getByRole('combobox', { name: 'Annotation layer title column' }),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user