Skip to content

Commit 98ef505

Browse files
microbit-rosslowemicrobit-carlos
authored andcommitted
Add Puppeteer testing (#166)
* Spike: add Puppeteer tests Integrate Puppeteer tests into the existing Python Editor tests. * Make tests more strict * Restructure tests - restructure tests so each test has its own -spec.js file - start & stop local server after all tests - remove device aspect of tests, and remove dependencies * Reorganise tests; fix file paths Neaten & fix tests by fixing test file paths. * Move Puppeteer tests to a single file Allows us to use a single browser object across all tests. * No need to remove line * Updates from feedback - rearrange AAA - remove dialogs from old hex tests - clarify flags - reduce dialog wait * Use jQuery to get script name * Get tests working in Azure * Use 1.1.4 only in testing * Split wait into ms * Consistent quotes * Move hex files to subdirectory, and minor tweaks.
1 parent 4ee609a commit 98ef505

10 files changed

Lines changed: 44012 additions & 48 deletions

File tree

tests/jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ module.exports = {
5252
// forceCoverageMatch: [],
5353

5454
// A path to a module which exports an async function that is triggered once before all test suites
55-
// globalSetup: null,
55+
globalSetup: "<rootDir>/run-server.js",
5656

5757
// A path to a module which exports an async function that is triggered once after all test suites
58-
// globalTeardown: null,
58+
globalTeardown: "<rootDir>/stop-server.js",
5959

6060
// A set of global variables that need to be available in all test environments
6161
// globals: {},

0 commit comments

Comments
 (0)