diff --git a/src/components/dataset-data/chart-table-toggle/chart-table-toggle.jsx b/src/components/dataset-data/chart-table-toggle/chart-table-toggle.jsx index 7bc38ee8ef..d2b8cccfd5 100644 --- a/src/components/dataset-data/chart-table-toggle/chart-table-toggle.jsx +++ b/src/components/dataset-data/chart-table-toggle/chart-table-toggle.jsx @@ -111,6 +111,7 @@ const ChartTableToggle = ({ {selectedTab === 1 ? ( { +const HideLegendToggle = ({ displayText, displayIcon, showToggle, onToggleLegend, selectedTab, role, ga4Selector }) => { return ( <>
{selectedTab && showToggle && ( - diff --git a/src/components/dataset-data/table-section-container/pivot-toggle/pivot-toggle.spec.js b/src/components/dataset-data/table-section-container/pivot-toggle/pivot-toggle.spec.js index 25ec62c120..f71ab2da8a 100644 --- a/src/components/dataset-data/table-section-container/pivot-toggle/pivot-toggle.spec.js +++ b/src/components/dataset-data/table-section-container/pivot-toggle/pivot-toggle.spec.js @@ -22,7 +22,7 @@ describe('PivotToggle component', () => { it('fires its click handler when clicked', () => { const { getByTestId } = render(); expect(handlerTracker).toBeNull(); - fireEvent.click(getByTestId('pivotToggle')); + fireEvent.click(getByTestId('show-pivot-options')); expect(handlerTracker).toEqual('called'); }); }); diff --git a/src/components/dataset-data/table-section-container/table-section-container.spec.js b/src/components/dataset-data/table-section-container/table-section-container.spec.js index feecbe1a84..23d40e38b4 100644 --- a/src/components/dataset-data/table-section-container/table-section-container.spec.js +++ b/src/components/dataset-data/table-section-container/table-section-container.spec.js @@ -278,7 +278,7 @@ describe('TableSectionContainer with Pivot Options', () => { ); expect(getByTestId('pivotOptionsDrawer').className).toContain(active); - fireEvent.click(getByTestId('pivotToggle')); + fireEvent.click(getByTestId('hide-pivot-options')); expect(getByTestId('pivotOptionsDrawer').className).not.toContain(active); }); @@ -302,7 +302,7 @@ describe('TableSectionContainer with Pivot Options', () => { /> ); - fireEvent.click(getByTestId('pivotToggle')); + fireEvent.click(getByTestId('hide-pivot-options')); }); it('relays an endpoint value when it receives it in the serverSidePagination prop', async () => { diff --git a/src/components/download-wrapper/download-item-button/download-item-button.jsx b/src/components/download-wrapper/download-item-button/download-item-button.jsx index d886a87b9e..cfad4676de 100644 --- a/src/components/download-wrapper/download-item-button/download-item-button.jsx +++ b/src/components/download-wrapper/download-item-button/download-item-button.jsx @@ -164,7 +164,7 @@ const DownloadItemButton = ({ return (
{asyncAction ? ( - diff --git a/src/components/select-control/select-control.jsx b/src/components/select-control/select-control.jsx index b02ff93e14..b75b53ae97 100644 --- a/src/components/select-control/select-control.jsx +++ b/src/components/select-control/select-control.jsx @@ -20,7 +20,7 @@ export const ariaLabeler = (selectedOptionLabel, ariaLabel, label) => { return `Change ${ariaLabelText} from ${selectedOptionLabel}`; }; -const SelectControl = ({ label, options, selectedOption, ariaLabel, changeHandler, showAll, optionLabelKey, className }) => { +const SelectControl = ({ label, options, selectedOption, ariaLabel, changeHandler, showAll, optionLabelKey, className, ga4Selector }) => { const labelKey = optionLabelKey ? optionLabelKey : 'label'; const [droppedDown, setDroppedDown] = useState(false); @@ -54,7 +54,7 @@ const SelectControl = ({ label, options, selectedOption, ariaLabel, changeHandle