Skip to content

Commit b9b2144

Browse files
Tweak WebUSB test procedure to test full flash and partial flashing.
1 parent 9bf77cb commit b9b2144

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

docs/release-tests/webusb.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,33 @@ The following tests should be carried out with all combinations of the
4646
micro:bit boards, DAPLink versions, and browsers/apps listed in the
4747
"Test Matrix" section.
4848

49+
As these tests can be repeated multiple times in the same computer with
50+
different micro:bit boards, when a test step indicates to create a new project,
51+
it is acceptable to use an existing project created in a previous test run.
52+
4953
### Test 1: WebUSB Download
5054

5155
1. Connect the micro:bit to the computer via USB.
5256
2. Open the micro:bit MakeCode editor under test in a Chrome-based browser.
53-
3. Create a new project.
54-
4. Add a block to the project (e.g. something simple to display on the LED
55-
matrix).
57+
3. Create a new project, and add a block to display an icon on the LED matrix.
58+
4. If the micro:bit was automatically connected via WebUSB, disconnect it from
59+
the editor by clicking on the "Disconnect" button in "Download" menu
60+
(three dots icon at the right of the "Download" button).
5661
5. Click the "Download" button.
5762
6. Follow the connection instructions to connect the micro:bit via WebUSB and
5863
download the programme.
5964
7. Verify that the programme runs on the micro:bit.
65+
8. Change the code to display a different icon on the LED matrix.
66+
9. Click the "Download" button again.
67+
10. No connection instructions should be show this time and the programme
68+
should be downloaded directly to the micro:bit in a shorter amount of time.
69+
11. Verify the new programme runs on the micro:bit with the new icon.
6070

6171
### Test 2: WebUSB Serial
6272

6373
1. Connect the micro:bit to the computer via USB.
6474
2. Open the micro:bit MakeCode editor under test in a Chrome-based browser.
65-
3. Create a new project.
66-
4. Add this code
75+
3. Create a new project and add this code
6776
```javascript
6877
basic.forever(function () {
6978
serial.writeLine("hello")

0 commit comments

Comments
 (0)