Skip to content

Commit fb34839

Browse files
microbit-henrymicrobit-carlos
authored andcommitted
Tests: Added a test case for the webusb error modal (#286)
1 parent c892e92 commit fb34839

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

tests/manual/test-procedure.rst

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,14 @@ You will need
9999
Tests Execution
100100
---------------
101101

102+
The test cases listed below always need to be run in a chrome-based browser:
103+
104+
- Connect and Flash over WebUSB and use REPL.
105+
- WebUSB error modal links are working.
106+
102107
For a Primary Editor release run all the tests in all browsers. For a Beta
103108
Editor release, run all tests in Internet Explorer 10, except for the
104-
"Connect and Flash over WebUSB and use REPL" test case, which has to be run
105-
in a Chrome-based browser.
109+
test cases listed above that need to be run in a chrome-based browser.
106110

107111
Start each test case in a new instance of the Python Editor.
108112

@@ -388,7 +392,7 @@ Test Case: Zoom changes the Text Editor font size
388392

389393
Test Case: Connect and Flash over WebUSB and use REPL
390394
'''''''''''''''''''''''''''''''''''''''''''''''''''''
391-
Carry out this test in Chrome or a Chrome-powered browser:
395+
Carry out this test in Chrome or a chrome-based browser:
392396
- [ ] Connect to micro:bit and confirm that menu now shows options to "Flash" and "Disconnect".
393397
- [ ] Confirm you can flash the default program to the micro:bit via WebUSB and that it behaves as expected.
394398
- [ ] "Open Serial" and confirm you can enter the REPL by click or CTRL-C.
@@ -399,7 +403,7 @@ Carry out this test in Chrome or a Chrome-powered browser:
399403
Test Case: WebUSB not supported message is working
400404
''''''''''''''''''''''''''''''''''''''''''''''''''
401405
Carry out this test in non-Chrome-based browsers
402-
- Click the 'Connect' button .
406+
- Click the 'Connect' button.
403407
- [ ] Confirm the WebUSB not supported message box is displayed.
404408
- Click the 'Open Serial' button.
405409
- [ ] Confirm the WebUSB not supported message box is displayed.
@@ -409,6 +413,20 @@ Carry out this test in non-Chrome-based browsers
409413
- [ ] Confirm the modal closes.
410414

411415

416+
Test Case: WebUSB error modal links are working
417+
'''''''''''''''''''''''''''''''''''''''''''''''
418+
Carry out this test in Chrome or a chrome-based browser:
419+
- Click the 'Connect' button.
420+
- Click 'Cancel' button in the WebUSB device selection window that opens.
421+
- Click the 'Download Hex' link in the modal that opens.
422+
- [ ] Confirm a hex file with the name 'microbit_program.hex' is downloaded.
423+
- Click the 'Troubleshoot' link.
424+
- [ ] Confirm that https://support.microbit.org/support/solutions/articles/19000105428-webusb-troubleshooting is opened in a new tab.
425+
- Close the troubleshooting tab.
426+
- Click the 'Close' link.
427+
- [ ] Confirm the modal closes.
428+
429+
412430
Test Case: Autocomplete
413431
'''''''''''''''''''''''
414432
- [ ] Start typing in the editor and confirm that autocomplete offers suggestions

0 commit comments

Comments
 (0)