From 18e0d530e2a430e5393fe25692d1ca056c22b307 Mon Sep 17 00:00:00 2001 From: Maribeth Bottorff Date: Wed, 2 Aug 2023 10:10:18 -0700 Subject: [PATCH] chore(tests): fix delete tests (#7351) * fix(tests): context menu delete test * fix(tests): try increasing pause length after keys --- tests/browser/test/delete_blocks_test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/browser/test/delete_blocks_test.js b/tests/browser/test/delete_blocks_test.js index 921ac9782fd..eeaa8162d35 100644 --- a/tests/browser/test/delete_blocks_test.js +++ b/tests/browser/test/delete_blocks_test.js @@ -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(