Skip to content

Commit 18e0d53

Browse files
authored
chore(tests): fix delete tests (#7351)
* fix(tests): context menu delete test * fix(tests): try increasing pause length after keys
1 parent 5e0390b commit 18e0d53

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/browser/test/delete_blocks_test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const startBlocks = {
9898
],
9999
},
100100
};
101-
const pauseLength = 20;
101+
const pauseLength = 200;
102102

103103
suite('Delete blocks', function (done) {
104104
// 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) {
167167
test('Delete block using context menu', async function () {
168168
const before = (await getAllBlocks(this.browser)).length;
169169
// Get first print block, click to select it, and delete it using context menu.
170-
const block = (await getBlockElementById(this.browser, firstBlockId)).$(
171-
'.blocklyPath',
172-
);
170+
const block = await getBlockElementById(this.browser, firstBlockId);
173171
await contextMenuSelect(this.browser, block, 'Delete 2 Blocks');
174172
const after = (await getAllBlocks(this.browser)).length;
175173
chai.assert.equal(

0 commit comments

Comments
 (0)