Merge pull request #1013 from pybricks/dlech

v2.0.0-beta.4
This commit is contained in:
David Lechner
2022-07-28 11:30:50 -05:00
committed by GitHub
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -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.
+1 -1
View File
@@ -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": {
+2 -1
View File
@@ -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());
});