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:
Maribeth Bottorff
2023-08-02 10:10:18 -07:00
committed by GitHub
parent 5e0390b3ec
commit 18e0d530e2

View File

@@ -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(