Skip to content

Commit a8cc795

Browse files
committed
Fix shadow block action test in github action attempt 2.
1 parent e9ee83c commit a8cc795

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

test/loadTestBlocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ const moreBlocks = {
317317
'next': {
318318
'block': {
319319
'type': 'text_print',
320-
'id': 'J`*)bq?#`_Vq^X(DQF2t',
320+
'id': 'text_print_1',
321321
'inputs': {
322322
'TEXT': {
323323
'shadow': {
324324
'type': 'text',
325-
'id': '6fW_sIt1t|63j}nPE1ge',
325+
'id': 'text_print_shadow_text_1',
326326
'fields': {
327327
'TEXT': 'abc',
328328
},

test/webdriverio/test/actions_test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const shadowBlockActionsViaKeyboard = [
5656
{'text': 'Disable Block'},
5757
{'text': 'Help'},
5858
{'text': 'Move Block M'},
59+
{'text': 'Edit Block contents Right'},
5960
{'disabled': true, 'text': isDarwin ? 'Cut ⌘ X' : 'Cut Ctrl + X'},
6061
{'text': isDarwin ? 'Copy ⌘ C' : 'Copy Ctrl + C'},
6162
{'disabled': true, 'text': isDarwin ? 'Paste ⌘ V' : 'Paste Ctrl + V'},
@@ -80,7 +81,7 @@ const workspaceActionsViaKeyboard = [
8081
{'text': 'Clean up Blocks'},
8182
{'text': 'Collapse Blocks'},
8283
{'disabled': true, 'text': 'Expand Blocks'},
83-
{'text': 'Delete 4 Blocks'},
84+
{'text': 'Delete 14 Blocks'},
8485
{'text': 'Add Comment'},
8586
{'disabled': true, 'text': isDarwin ? 'Paste ⌘ V' : 'Paste Ctrl + V'},
8687
];
@@ -96,7 +97,7 @@ suite('Menus test', function () {
9697
// seconds. Allow 30s just in case.
9798
this.timeout(30000);
9899

99-
this.browser = await testSetup(testFileLocations.BASE);
100+
this.browser = await testSetup(testFileLocations.MORE_BLOCKS);
100101
await this.browser.pause(PAUSE_TIME);
101102
});
102103

@@ -124,7 +125,7 @@ suite('Menus test', function () {
124125

125126
test('Shadow block menu via keyboard displays expected items', async function () {
126127
await tabNavigateToWorkspace(this.browser);
127-
await focusOnBlock(this.browser, 'draw_circle_1');
128+
await focusOnBlock(this.browser, 'text_print_1');
128129
await this.browser.keys(Key.ArrowRight);
129130
await this.browser.keys([Key.Ctrl, Key.Return]);
130131
await this.browser.pause(PAUSE_TIME);

test/webdriverio/test/test_setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ export const testFileLocations = {
153153
new URLSearchParams({scenario: 'navigationTestBlocks'}),
154154
),
155155
// eslint-disable-next-line @typescript-eslint/naming-convention
156+
MORE_BLOCKS: createTestUrl(new URLSearchParams({scenario: 'moreBlocks'})),
157+
// eslint-disable-next-line @typescript-eslint/naming-convention
156158
MOVE_TEST_BLOCKS: createTestUrl(
157159
new URLSearchParams({scenario: 'moveTestBlocks'}),
158160
),

0 commit comments

Comments
 (0)