mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
* chore(deps): Add pretter-plugin-organize-imports * chore: Remove insignificant blank lines in import sections Since prettier-plugin-organize-imports sorts imports within sections separated by blank lines, but preserves the section divisions, remove any blank lines that are not dividing imports into meaningful sections. Do not remove blank lines separating side-effect-only imports from main imports. * chore: Remove unneded eslint-disable directives * chore: Organise imports
39 lines
981 B
JavaScript
39 lines
981 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Node.js script to run Automated tests in Chrome, via
|
|
* webdriver, of basic Blockly block functionality.
|
|
*/
|
|
|
|
import * as chai from 'chai';
|
|
import {
|
|
dragNthBlockFromFlyout,
|
|
getAllBlocks,
|
|
testFileLocations,
|
|
testSetup,
|
|
} from './test_setup.mjs';
|
|
|
|
suite('Basic block tests', function (done) {
|
|
// Setting timeout to unlimited as the webdriver takes a longer time
|
|
// to run than most mocha test
|
|
this.timeout(0);
|
|
|
|
// Setup Selenium for all of the tests
|
|
suiteSetup(async function () {
|
|
this.browser = await testSetup(
|
|
testFileLocations.PLAYGROUND + '?toolbox=test-blocks',
|
|
);
|
|
});
|
|
|
|
test('Drag three blocks into the workspace', async function () {
|
|
for (let i = 1; i <= 3; i++) {
|
|
await dragNthBlockFromFlyout(this.browser, 'Align', 0, 250, 50 * i);
|
|
chai.assert.equal((await getAllBlocks(this.browser)).length, i);
|
|
}
|
|
});
|
|
});
|