Remi feedback

This commit is contained in:
Mark Kaylor 2022-11-02 14:44:18 +01:00
parent b8fb837c4c
commit 35c1dc85b4
5 changed files with 7 additions and 4103 deletions

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Plugins tab renders and matches the plugin tab snapshot 1`] = ` exports[`Marketplace page - plugins tab renders and matches the plugin tab snapshot 1`] = `
.c17 { .c17 {
padding-bottom: 16px; padding-bottom: 16px;
width: 25%; width: 25%;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Providers tab renders and matches the providers tab snapshot 1`] = ` exports[`Marketplace page - providers tab renders and matches the providers tab snapshot 1`] = `
.c17 { .c17 {
padding-bottom: 16px; padding-bottom: 16px;
width: 25%; width: 25%;

View File

@ -68,9 +68,9 @@ describe('Marketplace page - layout', () => {
afterAll(() => server.close()); afterAll(() => server.close());
it('redners the online layout', async () => { it('renders the online layout', async () => {
const trackUsage = jest.fn(); const trackUsage = jest.fn();
useTracking.mockImplementation(() => ({ trackUsage })); useTracking.mockImplementationOnce(() => ({ trackUsage }));
const { container } = render(App); const { container } = render(App);
await waitForReload(); await waitForReload();
@ -121,6 +121,6 @@ describe('Marketplace page - layout', () => {
}); });
expect(toggleNotification).toHaveBeenCalledTimes(1); expect(toggleNotification).toHaveBeenCalledTimes(1);
// Should not show install buttons // Should not show install buttons
expect(screen.queryByText(/copy install command/i)).not.toBeInTheDocument(); expect(screen.queryByText(/copy install command/i)).toEqual(null);
}); });
}); });

View File

@ -56,7 +56,7 @@ const waitForReload = async () => {
); );
}; };
describe('Providers tab', () => { describe('Marketplace page - providers tab', () => {
let renderedContainer; let renderedContainer;
let history; let history;