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:
Ashley Harrison
2022-11-11 11:34:00 +00:00
committed by GitHub
parent 891ae91c70
commit 0a9129cf90
9 changed files with 203 additions and 200 deletions

View File

@@ -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;