diff --git a/grafana-plugin/jest.config.js b/grafana-plugin/jest.config.js index bdb861bc..87d4c2df 100644 --- a/grafana-plugin/jest.config.js +++ b/grafana-plugin/jest.config.js @@ -1,4 +1,4 @@ -const esModules = ['@grafana', '@grafana/ui', 'ol', 'd3-interpolate', 'd3-color', 'react-colorful', 'uuid'].join('|'); +const esModules = ['@grafana', 'uplot', 'ol', 'd3', 'react-colorful', 'uuid'].join('|'); module.exports = { testEnvironment: 'jsdom', @@ -7,6 +7,7 @@ module.exports = { moduleFileExtensions: ['ts', 'tsx', 'js'], transformIgnorePatterns: [`/node_modules/(?!${esModules})`], + moduleNameMapper: { 'grafana/app/(.*)': '/src/jest/grafanaMock.ts', diff --git a/grafana-plugin/src/components/CardButton/CardButton.skipped.tsx b/grafana-plugin/src/components/CardButton/CardButton.test.tsx similarity index 100% rename from grafana-plugin/src/components/CardButton/CardButton.skipped.tsx rename to grafana-plugin/src/components/CardButton/CardButton.test.tsx diff --git a/grafana-plugin/src/components/Collapse/Collapse.skipped.tsx b/grafana-plugin/src/components/Collapse/Collapse.test.tsx similarity index 97% rename from grafana-plugin/src/components/Collapse/Collapse.skipped.tsx rename to grafana-plugin/src/components/Collapse/Collapse.test.tsx index 1303dc41..486f8a22 100644 --- a/grafana-plugin/src/components/Collapse/Collapse.skipped.tsx +++ b/grafana-plugin/src/components/Collapse/Collapse.test.tsx @@ -5,7 +5,7 @@ import { render, fireEvent, screen } from '@testing-library/react'; import Collapse, { CollapseProps } from 'components/Collapse/Collapse'; -describe('Collapse', () => { +describe.skip('Collapse', () => { function getProps(isOpen: boolean, onClick: jest.Mock = jest.fn()) { return { label: 'Toggle', diff --git a/grafana-plugin/src/components/ScheduleQualityDetails/ScheduleQualityProgressBar.skipped.tsx b/grafana-plugin/src/components/ScheduleQualityDetails/ScheduleQualityProgressBar.test.tsx similarity index 100% rename from grafana-plugin/src/components/ScheduleQualityDetails/ScheduleQualityProgressBar.skipped.tsx rename to grafana-plugin/src/components/ScheduleQualityDetails/ScheduleQualityProgressBar.test.tsx diff --git a/grafana-plugin/src/components/ScheduleQualityDetails/__snapshots__/ScheduleQualityProgressBar.test.tsx.snap b/grafana-plugin/src/components/ScheduleQualityDetails/__snapshots__/ScheduleQualityProgressBar.test.tsx.snap new file mode 100644 index 00000000..d02f6728 --- /dev/null +++ b/grafana-plugin/src/components/ScheduleQualityDetails/__snapshots__/ScheduleQualityProgressBar.test.tsx.snap @@ -0,0 +1,449 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`SourceCode It renders at 0% 1`] = ` +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`; + +exports[`SourceCode It renders at 25% 1`] = ` +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`; + +exports[`SourceCode It renders at 30% 1`] = ` +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`; + +exports[`SourceCode It renders at 50% 1`] = ` +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`; + +exports[`SourceCode It renders at 65% 1`] = ` +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`; + +exports[`SourceCode It renders at 70% 1`] = ` +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`; + +exports[`SourceCode It renders at 100% 1`] = ` +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`; diff --git a/grafana-plugin/src/components/SourceCode/SourceCode.skipped.tsx b/grafana-plugin/src/components/SourceCode/SourceCode.test.tsx similarity index 100% rename from grafana-plugin/src/components/SourceCode/SourceCode.skipped.tsx rename to grafana-plugin/src/components/SourceCode/SourceCode.test.tsx diff --git a/grafana-plugin/src/components/Unauthorized/Unauthorized.skipped.tsx b/grafana-plugin/src/components/Unauthorized/Unauthorized.test.tsx similarity index 100% rename from grafana-plugin/src/components/Unauthorized/Unauthorized.skipped.tsx rename to grafana-plugin/src/components/Unauthorized/Unauthorized.test.tsx diff --git a/grafana-plugin/src/components/Unauthorized/__snapshots__/Unauthorized.test.tsx.snap b/grafana-plugin/src/components/Unauthorized/__snapshots__/Unauthorized.test.tsx.snap new file mode 100644 index 00000000..30fa907f --- /dev/null +++ b/grafana-plugin/src/components/Unauthorized/__snapshots__/Unauthorized.test.tsx.snap @@ -0,0 +1,241 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Unauthorized renders properly - access control enabled: false 1`] = ` +
+
+
+

+ + 403 + +

+
+
+

+ + You do not have access to view this page. + + You must be at least an Admin. +
+
+ Please contact your organization administrator to request access. +
+

+
+
+
+`; + +exports[`Unauthorized renders properly - access control enabled: true 1`] = ` +
+
+
+

+ + 403 + +

+
+
+

+ + You do not have access to view this page. + + You are missing the grafana-oncall-app.testing:hi permission. +
+
+ Please contact your organization administrator to request access. +
+

+
+
+
+`; + +exports[`Unauthorized renders properly the grammar for different roles - Admin 1`] = ` +
+
+
+

+ + 403 + +

+
+
+

+ + You do not have access to view this page. + + You must be at least an Admin. +
+
+ Please contact your organization administrator to request access. +
+

+
+
+
+`; + +exports[`Unauthorized renders properly the grammar for different roles - Editor 1`] = ` +
+
+
+

+ + 403 + +

+
+
+

+ + You do not have access to view this page. + + You must be at least an Editor. +
+
+ Please contact your organization administrator to request access. +
+

+
+
+
+`; + +exports[`Unauthorized renders properly the grammar for different roles - Viewer 1`] = ` +
+
+
+

+ + 403 + +

+
+
+

+ + You do not have access to view this page. + + You must be at least a Viewer. +
+
+ Please contact your organization administrator to request access. +
+

+
+
+
+`; diff --git a/grafana-plugin/src/containers/MobileAppConnection/MobileAppConnection.skipped.tsx b/grafana-plugin/src/containers/MobileAppConnection/MobileAppConnection.test.tsx similarity index 100% rename from grafana-plugin/src/containers/MobileAppConnection/MobileAppConnection.skipped.tsx rename to grafana-plugin/src/containers/MobileAppConnection/MobileAppConnection.test.tsx diff --git a/grafana-plugin/src/containers/MobileAppConnection/__snapshots__/MobileAppConnection.test.tsx.snap b/grafana-plugin/src/containers/MobileAppConnection/__snapshots__/MobileAppConnection.test.tsx.snap new file mode 100644 index 00000000..1ca0d784 --- /dev/null +++ b/grafana-plugin/src/containers/MobileAppConnection/__snapshots__/MobileAppConnection.test.tsx.snap @@ -0,0 +1,3106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`MobileAppConnection if we disconnect the app, it disconnects and fetches a new QR code 1`] = ` +
+
+
+
+
+ + Download + +
+
+ + The Grafana IRM app is available on both the App Store and Google Play Store. + +
+ +
+
+
+
+
+ + Sign In + +
+
+ + Open Grafana IRM mobile application and scan this code to sync it with your account. + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+`; + +exports[`MobileAppConnection it shows a QR code if the app isn't already connected 1`] = ` +
+
+
+
+
+ + Download + +
+
+ + The Grafana IRM app is available on both the App Store and Google Play Store. + +
+ +
+
+
+
+ Loading... + +
+ +
+
+
+
+
+`; + +exports[`MobileAppConnection it shows a loading message if it is currently disconnecting 1`] = ` +
+
+
+
+
+ + Download + +
+
+ + The Grafana IRM app is available on both the App Store and Google Play Store. + +
+ +
+
+
+
+ Loading... + +
+ +
+
+
+
+
+`; + +exports[`MobileAppConnection it shows a loading message if it is currently fetching the QR code 1`] = ` +
+
+
+
+
+ + Download + +
+
+ + The Grafana IRM app is available on both the App Store and Google Play Store. + +
+ +
+
+
+
+ Loading... + +
+ +
+
+
+
+
+`; + +exports[`MobileAppConnection it shows a message when the mobile app is already connected 1`] = ` +
+
+
+
+
+ + Download + +
+
+ + The Grafana IRM app is available on both the App Store and Google Play Store. + +
+ +
+
+
+
+
+ + App connected +
+ + + +
+
+
+
+ + You can sync one application to your account. To setup new device please disconnect app first. + +
+
+
+ + +
+
+
+
+
+
+`; + +exports[`MobileAppConnection it shows a warning when cloud is not connected 1`] = ` +
+
+
+ + Please connect Cloud OnCall to use the mobile app + +
+ +
+
+`; + +exports[`MobileAppConnection it shows an error message if there was an error disconnecting the mobile app 1`] = ` +
+
+
+
+
+ + Download + +
+
+ + The Grafana IRM app is available on both the App Store and Google Play Store. + +
+ +
+
+
+ + There was an error disconnecting your mobile app. Please try again. + +
+
+
+`; + +exports[`MobileAppConnection it shows an error message if there was an error fetching the QR code 1`] = ` +
+
+
+
+
+ + Download + +
+
+ + The Grafana IRM app is available on both the App Store and Google Play Store. + +
+ +
+
+
+ + There was an error fetching your QR code. Please try again. + +
+
+
+`; diff --git a/grafana-plugin/src/containers/MobileAppConnection/parts/DisconnectButton/DisconnectButton.skipped.tsx b/grafana-plugin/src/containers/MobileAppConnection/parts/DisconnectButton/DisconnectButton.test.tsx similarity index 100% rename from grafana-plugin/src/containers/MobileAppConnection/parts/DisconnectButton/DisconnectButton.skipped.tsx rename to grafana-plugin/src/containers/MobileAppConnection/parts/DisconnectButton/DisconnectButton.test.tsx diff --git a/grafana-plugin/src/containers/MobileAppConnection/parts/DisconnectButton/__snapshots__/DisconnectButton.test.tsx.snap b/grafana-plugin/src/containers/MobileAppConnection/parts/DisconnectButton/__snapshots__/DisconnectButton.test.tsx.snap new file mode 100644 index 00000000..676fba43 --- /dev/null +++ b/grafana-plugin/src/containers/MobileAppConnection/parts/DisconnectButton/__snapshots__/DisconnectButton.test.tsx.snap @@ -0,0 +1,17 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`DisconnectButton it renders properly 1`] = ` +
+ +
+`; diff --git a/grafana-plugin/src/containers/MobileAppConnection/parts/DownloadIcons/DownloadIcons.skipped.tsx b/grafana-plugin/src/containers/MobileAppConnection/parts/DownloadIcons/DownloadIcons.test.tsx similarity index 100% rename from grafana-plugin/src/containers/MobileAppConnection/parts/DownloadIcons/DownloadIcons.skipped.tsx rename to grafana-plugin/src/containers/MobileAppConnection/parts/DownloadIcons/DownloadIcons.test.tsx diff --git a/grafana-plugin/src/containers/MobileAppConnection/parts/DownloadIcons/__snapshots__/DownloadIcons.test.tsx.snap b/grafana-plugin/src/containers/MobileAppConnection/parts/DownloadIcons/__snapshots__/DownloadIcons.test.tsx.snap new file mode 100644 index 00000000..f1212104 --- /dev/null +++ b/grafana-plugin/src/containers/MobileAppConnection/parts/DownloadIcons/__snapshots__/DownloadIcons.test.tsx.snap @@ -0,0 +1,88 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`DownloadIcons it renders properly 1`] = ` +
+
+
+ + Download + +
+
+ + The Grafana IRM app is available on both the App Store and Google Play Store. + +
+ +
+
+`; diff --git a/grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.skipped.tsx b/grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.test.tsx similarity index 100% rename from grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.skipped.tsx rename to grafana-plugin/src/containers/PluginConfigPage/PluginConfigPage.test.tsx diff --git a/grafana-plugin/src/containers/PluginConfigPage/__snapshots__/PluginConfigPage.test.tsx.snap b/grafana-plugin/src/containers/PluginConfigPage/__snapshots__/PluginConfigPage.test.tsx.snap new file mode 100644 index 00000000..41d4e6ab --- /dev/null +++ b/grafana-plugin/src/containers/PluginConfigPage/__snapshots__/PluginConfigPage.test.tsx.snap @@ -0,0 +1,449 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`PluginConfigPage If onCallApiUrl is not set in the plugin's meta jsonData, and ONCALL_API_URL is passed in process.env, and there is an error calling selfHostedInstallPlugin, it sets an error message 1`] = ` +
+ + Configure Grafana OnCall + +

+ This page will help you configure the OnCall plugin 👋 +

+
+    
+      ohhh nooo an error msg from self hosted install plugin
+    
+  
+ +
+`; + +exports[`PluginConfigPage If onCallApiUrl is not set in the plugin's meta jsonData, or in process.env, checkIfPluginIsConnected is not called, and the configuration form is shown 1`] = ` +
+ + Configure Grafana OnCall + +

+ This page will help you configure the OnCall plugin 👋 +

+
+
+

+ 1. Launch the OnCall backend +

+ + Run hobby, dev or production backend. See + + + + here + + + + on how to get started. + +
+
+

+ 2. Let us know the base URL of your OnCall API +

+ + The OnCall backend must be reachable from your Grafana installation. Some examples are: +
+ - http://host.docker.internal:8080 +
+ - http://localhost:8080 +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+`; + +exports[`PluginConfigPage If onCallApiUrl is set, and checkIfPluginIsConnected returns an error, it sets an error message 1`] = ` +
+ + Configure Grafana OnCall + +

+ This page will help you configure the OnCall plugin 👋 +

+
+    
+      ohhh nooo a plugin connection error
+    
+  
+ +
+`; + +exports[`PluginConfigPage It doesn't make any network calls if the plugin configured query params are provided 1`] = ` +
+ + Configure Grafana OnCall + +

+ Plugin is connected! Continue to Grafana OnCall by clicking the + + Grafana OnCall Logo + icon over there 👈 +

+
+    
+      Connected to OnCall (v1.2.3, OpenSource)
+    
+  
+ +
+`; + +exports[`PluginConfigPage OnCallApiUrl is set, and syncDataWithOnCall does not return an error. It displays properly the plugin connected items based on the license - License: OpenSource 1`] = ` +
+ + Configure Grafana OnCall + +

+ Plugin is connected! Continue to Grafana OnCall by clicking the + + Grafana OnCall Logo + icon over there 👈 +

+
+    
+      Connected to OnCall (v1.2.3, OpenSource)
+    
+  
+ +
+`; + +exports[`PluginConfigPage OnCallApiUrl is set, and syncDataWithOnCall does not return an error. It displays properly the plugin connected items based on the license - License: some-other-license 1`] = ` +
+ + Configure Grafana OnCall + +

+ Plugin is connected! Continue to Grafana OnCall by clicking the + + Grafana OnCall Logo + icon over there 👈 +

+
+    
+      Connected to OnCall (v1.2.3, some-other-license)
+    
+  
+
+ +
+
+`; + +exports[`PluginConfigPage OnCallApiUrl is set, and syncDataWithOnCall returns an error 1`] = ` +
+ + Configure Grafana OnCall + +

+ This page will help you configure the OnCall plugin 👋 +

+
+    
+      ohhh noooo a sync issue
+    
+  
+ +
+`; + +exports[`PluginConfigPage Plugin reset: successful - false 1`] = ` +
+ + Configure Grafana OnCall + +

+ This page will help you configure the OnCall plugin 👋 +

+
+    
+      There was an error resetting your plugin, try again.
+    
+  
+ +
+`; + +exports[`PluginConfigPage Plugin reset: successful - true 1`] = ` +
+ + Configure Grafana OnCall + +

+ This page will help you configure the OnCall plugin 👋 +

+
+
+

+ 1. Launch the OnCall backend +

+ + Run hobby, dev or production backend. See + + + + here + + + + on how to get started. + +
+
+

+ 2. Let us know the base URL of your OnCall API +

+ + The OnCall backend must be reachable from your Grafana installation. Some examples are: +
+ - http://host.docker.internal:8080 +
+ - http://localhost:8080 +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+`; diff --git a/grafana-plugin/src/containers/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.skipped.tsx b/grafana-plugin/src/containers/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.test.tsx similarity index 100% rename from grafana-plugin/src/containers/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.skipped.tsx rename to grafana-plugin/src/containers/PluginConfigPage/parts/ConfigurationForm/ConfigurationForm.test.tsx diff --git a/grafana-plugin/src/containers/PluginConfigPage/parts/ConfigurationForm/__snapshots__/ConfigurationForm.test.tsx.snap b/grafana-plugin/src/containers/PluginConfigPage/parts/ConfigurationForm/__snapshots__/ConfigurationForm.test.tsx.snap new file mode 100644 index 00000000..d937974b --- /dev/null +++ b/grafana-plugin/src/containers/PluginConfigPage/parts/ConfigurationForm/__snapshots__/ConfigurationForm.test.tsx.snap @@ -0,0 +1,278 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ConfigurationForm It doesn't allow the user to submit if the URL is invalid 1`] = ` + +
+
+
+

+ 1. Launch the OnCall backend +

+ + Run hobby, dev or production backend. See + + + + here + + + + on how to get started. + +
+
+

+ 2. Let us know the base URL of your OnCall API +

+ + The OnCall backend must be reachable from your Grafana installation. Some examples are: +
+ - http://host.docker.internal:8080 +
+ - http://localhost:8080 +
+
+
+
+ +
+
+
+
+ +
+
+
+ +
+
+
+ +
+
+ +`; + +exports[`ConfigurationForm It shows an error message if the self hosted plugin API call fails 1`] = ` + +
+
+
+

+ 1. Launch the OnCall backend +

+ + Run hobby, dev or production backend. See + + + + here + + + + on how to get started. + +
+
+

+ 2. Let us know the base URL of your OnCall API +

+ + The OnCall backend must be reachable from your Grafana installation. Some examples are: +
+ - http://host.docker.internal:8080 +
+ - http://localhost:8080 +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+        
+          ohhh nooo there was an error from the OnCall API
+        
+      
+
+ + Need help? +
+ - Reach out to the OnCall team in the + + + + #grafana-oncall + + + + community Slack channel +
+ - Ask questions on our GitHub Discussions page + + + + here + + + +
+ - Or file bugs on our GitHub Issues page + + + + here + + +
+
+ +
+
+ +`; diff --git a/grafana-plugin/src/containers/PluginConfigPage/parts/RemoveCurrentConfigurationButton/RemoveCurrentConfigurationButton.skipped.tsx b/grafana-plugin/src/containers/PluginConfigPage/parts/RemoveCurrentConfigurationButton/RemoveCurrentConfigurationButton.test.tsx similarity index 100% rename from grafana-plugin/src/containers/PluginConfigPage/parts/RemoveCurrentConfigurationButton/RemoveCurrentConfigurationButton.skipped.tsx rename to grafana-plugin/src/containers/PluginConfigPage/parts/RemoveCurrentConfigurationButton/RemoveCurrentConfigurationButton.test.tsx diff --git a/grafana-plugin/src/containers/PluginConfigPage/parts/RemoveCurrentConfigurationButton/__snapshots__/RemoveCurrentConfigurationButton.test.tsx.snap b/grafana-plugin/src/containers/PluginConfigPage/parts/RemoveCurrentConfigurationButton/__snapshots__/RemoveCurrentConfigurationButton.test.tsx.snap new file mode 100644 index 00000000..cdbbb817 --- /dev/null +++ b/grafana-plugin/src/containers/PluginConfigPage/parts/RemoveCurrentConfigurationButton/__snapshots__/RemoveCurrentConfigurationButton.test.tsx.snap @@ -0,0 +1,36 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`RemoveCurrentConfigurationButton It renders properly when disabled 1`] = ` + +
+ +
+ +`; + +exports[`RemoveCurrentConfigurationButton It renders properly when enabled 1`] = ` + +
+ +
+ +`; diff --git a/grafana-plugin/src/containers/PluginConfigPage/parts/StatusMessageBlock/StatusMessageBlock.skipped.tsx b/grafana-plugin/src/containers/PluginConfigPage/parts/StatusMessageBlock/StatusMessageBlock.test.tsx similarity index 100% rename from grafana-plugin/src/containers/PluginConfigPage/parts/StatusMessageBlock/StatusMessageBlock.skipped.tsx rename to grafana-plugin/src/containers/PluginConfigPage/parts/StatusMessageBlock/StatusMessageBlock.test.tsx diff --git a/grafana-plugin/src/containers/PluginConfigPage/parts/StatusMessageBlock/__snapshots__/StatusMessageBlock.test.tsx.snap b/grafana-plugin/src/containers/PluginConfigPage/parts/StatusMessageBlock/__snapshots__/StatusMessageBlock.test.tsx.snap new file mode 100644 index 00000000..4671a76e --- /dev/null +++ b/grafana-plugin/src/containers/PluginConfigPage/parts/StatusMessageBlock/__snapshots__/StatusMessageBlock.test.tsx.snap @@ -0,0 +1,17 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`StatusMessageBlock It renders properly 1`] = ` + +
+
+      
+        helloooo
+      
+    
+
+ +`; diff --git a/grafana-plugin/src/plugin/PluginSetup/PluginSetup.skipped.tsx b/grafana-plugin/src/plugin/PluginSetup/PluginSetup.test.tsx similarity index 100% rename from grafana-plugin/src/plugin/PluginSetup/PluginSetup.skipped.tsx rename to grafana-plugin/src/plugin/PluginSetup/PluginSetup.test.tsx diff --git a/grafana-plugin/src/plugin/PluginSetup/__snapshots__/PluginSetup.test.tsx.snap b/grafana-plugin/src/plugin/PluginSetup/__snapshots__/PluginSetup.test.tsx.snap new file mode 100644 index 00000000..05b875fa --- /dev/null +++ b/grafana-plugin/src/plugin/PluginSetup/__snapshots__/PluginSetup.test.tsx.snap @@ -0,0 +1,175 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`PluginSetup app initialized with topnavbar = false 1`] = ` +
+
+ Grafana OnCall Logo +
+ Initializing plugin... +
+
+
+`; + +exports[`PluginSetup app initialized with topnavbar = true 1`] = ` +
+
+ Grafana OnCall Logo +
+ Initializing plugin... +
+
+
+`; + +exports[`PluginSetup app is loading 1`] = ` +
+
+ Grafana OnCall Logo +
+ Initializing plugin... +
+
+
+`; + +exports[`PluginSetup app successfully initialized 1`] = ` +
+
+ hello +
+
+`; + +exports[`PluginSetup there is an error message - retry setup 1`] = ` +
+
+ Grafana OnCall Logo +
+ ohhhh noo +
+
+
+
+ +
+ +
+
+
+
+`; + +exports[`PluginSetup there is an error message 1`] = ` +
+
+ Grafana OnCall Logo +
+ ohhhh noo +
+
+
+
+ +
+ +
+
+
+
+`;