+ )}
+
+ )
+}
diff --git a/src/components/plugin-wrapper/__tests__/pivot-table-plugin.spec.tsx b/src/components/plugin-wrapper/__tests__/pivot-table-plugin.spec.tsx
new file mode 100644
index 000000000..0677fc2f4
--- /dev/null
+++ b/src/components/plugin-wrapper/__tests__/pivot-table-plugin.spec.tsx
@@ -0,0 +1,75 @@
+import { MockMetadataProvider } from '@components/app-wrapper/metadata-provider/metadata-provider'
+import { PivotTablePlugin } from '@components/plugin-wrapper/pivot-table-plugin'
+import { render, screen } from '@testing-library/react'
+import type { CurrentVisualization } from '@types'
+import { describe, expect, it, vi } from 'vitest'
+
+/* The engine renders the filter row itself, so the only thing this app
+ * controls is the prop. Stubbing the table keeps the assertion on that. */
+vi.mock('@dhis2/analytics', async (importOriginal) => ({
+ ...(await importOriginal