mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: move to node 18 (#58570)
* bump node version to 18 * update folder to 18.x * update README for m1 instructions * update drone * update unit test * update README
This commit is contained in:
@@ -71,6 +71,7 @@ beforeEach(() => {
|
||||
config.featureToggles.publicDashboards = true;
|
||||
mockDashboard = new DashboardModel({
|
||||
uid: 'mockDashboardUid',
|
||||
timezone: 'utc',
|
||||
});
|
||||
|
||||
mockPanel = new PanelModel({
|
||||
@@ -145,7 +146,7 @@ describe('SharePublic', () => {
|
||||
await renderSharePublicDashboard({ panel: mockPanel, dashboard: mockDashboard, onDismiss: () => {} });
|
||||
|
||||
await screen.findByText('Welcome to Grafana public dashboards alpha!');
|
||||
expect(screen.getByText('2022-08-30 00:00:00 to 2022-09-04 01:59:59')).toBeInTheDocument();
|
||||
expect(screen.getByText('2022-08-30 00:00:00 to 2022-09-04 00:59:59')).toBeInTheDocument();
|
||||
});
|
||||
it('when modal is opened, then loader spinner appears and inputs are disabled', async () => {
|
||||
mockDashboard.meta.hasPublicDashboard = true;
|
||||
|
||||
Reference in New Issue
Block a user