From 2908ac358df82aec2b14e41e5876696c697c29a8 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Thu, 28 Jul 2022 10:25:33 -0500 Subject: [PATCH 1/2] v2.0.0-beta.4 --- CHANGELOG.md | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de8e8fb7..4f9973a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ## [Unreleased] +## [2.0.0-beta.4] - 2022-07-28 + ### Added - Added better error message when no files to backup ([support#681]). - Added multi-step firmware flashing dialog. diff --git a/package.json b/package.json index 657e0607..2a517d31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pybricks/pybricks-code", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "license": "MIT", "author": "The Pybricks Authors", "repository": { From e3fece1517d737bb1ec7252f913ab0a76b1ead87 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Thu, 28 Jul 2022 10:32:19 -0500 Subject: [PATCH 2/2] toolbar/TourButton: fix test when env var set The name depends on the environment and this test failed during release. --- src/toolbar/buttons/tour/TourButton.test.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/toolbar/buttons/tour/TourButton.test.tsx b/src/toolbar/buttons/tour/TourButton.test.tsx index 346f2185..0a8f1290 100644 --- a/src/toolbar/buttons/tour/TourButton.test.tsx +++ b/src/toolbar/buttons/tour/TourButton.test.tsx @@ -4,6 +4,7 @@ import { cleanup } from '@testing-library/react'; import React from 'react'; import { testRender } from '../../../../test'; +import { appName } from '../../../app/constants'; import { HubRuntimeState } from '../../../hub/reducers'; import { tourStart } from '../../../tour/actions'; import TourButton from './TourButton'; @@ -17,7 +18,7 @@ it('should dispatch action when clicked', async () => { hub: { runtime: HubRuntimeState.Running }, }); - await user.click(button.getByRole('button', { name: 'Tour Pybricks Code' })); + await user.click(button.getByRole('button', { name: `Tour ${appName}` })); expect(dispatch).toHaveBeenCalledWith(tourStart()); });