Skip to content

Commit

Permalink
chore(tests): fix delete tests (#7351)
Browse files Browse the repository at this point in the history
* fix(tests): context menu delete test

* fix(tests): try increasing pause length after keys
  • Loading branch information
maribethb authored Aug 2, 2023
1 parent 5e0390b commit 18e0d53
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/browser/test/delete_blocks_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 18e0d53

Please sign in to comment.