fix(editor): Enable pin data button to also un-pin (#13642)

This commit is contained in:
Milorad FIlipović
2025-03-03 16:17:59 +01:00
committed by GitHub
parent d9e3cfe13f
commit 24681f843c
5 changed files with 44 additions and 13 deletions

View File

@@ -166,14 +166,14 @@ describe('RunData', () => {
expect(queryByTestId('ndv-pin-data')).not.toBeInTheDocument();
});
it('should disable pin data button when data is pinned', async () => {
it('should not disable pin data button when data is pinned [ADO-3143]', async () => {
const { getByTestId } = render({
defaultRunItems: [],
displayMode: 'table',
pinnedData: [{ json: { name: 'Test' } }],
});
const pinDataButton = getByTestId('ndv-pin-data');
expect(pinDataButton).toBeDisabled();
expect(pinDataButton).not.toBeDisabled();
});
it('should render callout when data is pinned in output panel', async () => {