Merge remote-tracking branch 'origin/master' into feature/provide-icon-for-search-result-icon

This commit is contained in:
Andreas Berger
2025-10-09 08:50:15 +02:00
387 changed files with 11975 additions and 2642 deletions
+10
View File
@@ -1,5 +1,15 @@
# @backstage/plugin-techdocs
## 1.15.1-next.2
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.18.2-next.2
- @backstage/theme@0.6.9-next.0
- @backstage/plugin-search-react@1.9.5-next.2
- @backstage/plugin-techdocs-react@1.3.4-next.1
## 1.15.1-next.1
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-techdocs",
"version": "1.15.1-next.1",
"version": "1.15.1-next.2",
"description": "The Backstage plugin that renders technical documentation for your components",
"backstage": {
"role": "frontend-plugin",
@@ -84,16 +84,21 @@ it('should trigger query when autocomplete input changed', async () => {
);
await singleResult;
expect(querySpy).toHaveBeenCalledWith({
filters: {
kind: 'Testable',
name: 'test',
namespace: 'testspace',
expect(querySpy).toHaveBeenCalledWith(
{
filters: {
kind: 'Testable',
name: 'test',
namespace: 'testspace',
},
pageCursor: '',
term: '',
types: ['techdocs'],
},
pageCursor: '',
term: '',
types: ['techdocs'],
});
{
signal: expect.any(AbortSignal),
},
);
const autocomplete = screen.getByTestId('techdocs-search-bar');
const input = within(autocomplete).getByRole('textbox');
@@ -105,16 +110,21 @@ it('should trigger query when autocomplete input changed', async () => {
await singleResult;
await waitFor(() =>
expect(querySpy).toHaveBeenCalledWith({
filters: {
kind: 'Testable',
name: 'test',
namespace: 'testspace',
expect(querySpy).toHaveBeenCalledWith(
{
filters: {
kind: 'Testable',
name: 'test',
namespace: 'testspace',
},
pageCursor: '',
term: 'asdf',
types: ['techdocs'],
},
pageCursor: '',
term: 'asdf',
types: ['techdocs'],
}),
{
signal: expect.any(AbortSignal),
},
),
);
});
@@ -144,16 +154,21 @@ it('should update filter values when a new entityName is provided', async () =>
await renderInTestApp(<WrappedSearchBar />);
await singleResult;
expect(querySpy).toHaveBeenCalledWith({
filters: {
kind: 'Testable',
name: 'test',
namespace: 'testspace',
expect(querySpy).toHaveBeenCalledWith(
{
filters: {
kind: 'Testable',
name: 'test',
namespace: 'testspace',
},
pageCursor: '',
term: '',
types: ['techdocs'],
},
pageCursor: '',
term: '',
types: ['techdocs'],
});
{
signal: expect.any(AbortSignal),
},
);
const button = screen.getByText('Update Entity');
act(() => {
@@ -162,15 +177,20 @@ it('should update filter values when a new entityName is provided', async () =>
await singleResult;
await waitFor(() =>
expect(querySpy).toHaveBeenCalledWith({
filters: {
kind: 'TestableDiff',
name: 'test-diff',
namespace: 'testspace-diff',
expect(querySpy).toHaveBeenCalledWith(
{
filters: {
kind: 'TestableDiff',
name: 'test-diff',
namespace: 'testspace-diff',
},
pageCursor: '',
term: '',
types: ['techdocs'],
},
pageCursor: '',
term: '',
types: ['techdocs'],
}),
{
signal: expect.any(AbortSignal),
},
),
);
});