+
diff --git a/plugins/home/src/homePageComponents/Toolkit/Content.test.tsx b/plugins/home/src/homePageComponents/Toolkit/Content.test.tsx
index 7fbaff08f9..1955019a4a 100644
--- a/plugins/home/src/homePageComponents/Toolkit/Content.test.tsx
+++ b/plugins/home/src/homePageComponents/Toolkit/Content.test.tsx
@@ -13,19 +13,32 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
import { renderInTestApp } from '@backstage/test-utils';
import React from 'react';
import { Content } from './Content';
+import { ContextProvider } from './Context';
describe('
', () => {
+ const tools = [
+ { label: 'tool', url: '/url', icon: icon
},
+ { label: 'tool 2', url: '/url-2', icon: icon 2
},
+ ];
+
test('should render list of tools', async () => {
+ const { getByText } = await renderInTestApp();
+
+ expect(getByText('tool')).toBeInTheDocument();
+ expect(getByText('tool 2')).toBeInTheDocument();
+ expect(getByText('tool').closest('a')).toHaveAttribute('href', '/url');
+ expect(getByText('tool 2').closest('a')).toHaveAttribute('href', '/url-2');
+ });
+
+ test('should render list of tools using context', async () => {
const { getByText } = await renderInTestApp(
- icon },
- { label: 'tool 2', url: '/url-2', icon: