mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
chore(tests): fix delete tests (#7351)
* fix(tests): context menu delete test * fix(tests): try increasing pause length after keys
This commit is contained in:
committed by
GitHub
parent
5e0390b3ec
commit
18e0d530e2
@@ -98,7 +98,7 @@ const startBlocks = {
|
||||
],
|
||||
},
|
||||
};
|
||||
const pauseLength = 20;
|
||||
const pauseLength = 200;
|
||||
|
||||
suite('Delete blocks', function (done) {
|
||||
// Setting timeout to unlimited as the webdriver takes a longer time to run than most mocha test
|
||||
@@ -167,9 +167,7 @@ suite('Delete blocks', function (done) {
|
||||
test('Delete block using context menu', async function () {
|
||||
const before = (await getAllBlocks(this.browser)).length;
|
||||
// Get first print block, click to select it, and delete it using context menu.
|
||||
const block = (await getBlockElementById(this.browser, firstBlockId)).$(
|
||||
'.blocklyPath',
|
||||
);
|
||||
const block = await getBlockElementById(this.browser, firstBlockId);
|
||||
await contextMenuSelect(this.browser, block, 'Delete 2 Blocks');
|
||||
const after = (await getAllBlocks(this.browser)).length;
|
||||
chai.assert.equal(
|
||||
|
||||
Reference in New Issue
Block a user