fix(ux): use title case for button labels (#40048)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
Kasia
2026-08-20 20:14:33 -07:00
committed by GitHub
co-authored by Claude Sonnet 4.6 Evan Rusackas
parent 27ea5de44a
commit 22396d504a
7 changed files with 17 additions and 17 deletions
@@ -187,7 +187,7 @@ async function openAndSaveChanges(
await userEvent.click(screen.getByTestId('datasource-menu-trigger'));
await userEvent.click(await screen.findByTestId('edit-dataset'));
await userEvent.click(await screen.findByTestId('datasource-modal-save'));
await userEvent.click(await screen.findByText('OK'));
await userEvent.click(await screen.findByText('Confirm'));
}
test('Should render', async () => {
@@ -714,10 +714,10 @@ test('should handle metric save confirmation modal', async () => {
await userEvent.click(await screen.findByTestId('datasource-modal-save'));
// Verify confirmation modal appears
expect(await screen.findByText('OK')).toBeInTheDocument();
expect(await screen.findByText('Confirm')).toBeInTheDocument();
// Confirm save
await userEvent.click(screen.getByText('OK'));
await userEvent.click(screen.getByText('Confirm'));
await waitFor(() => {
expect(props.onDatasourceSave).toHaveBeenCalled();