Skip to content

Commit c9cc4b1

Browse files
fix e2e tests
1 parent 82d7d72 commit c9cc4b1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/e2e/tests/critical-path/browser/filtering.e2e.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,15 @@ test
5353
await t.click(cliPage.cliExpandButton);
5454
for (const { textType, keyName } of keyTypes) {
5555
if (textType in COMMANDS_TO_CREATE_KEY) {
56-
await t.typeText(cliPage.cliCommandInput, COMMANDS_TO_CREATE_KEY[textType](keyName));
56+
await t.typeText(cliPage.cliCommandInput, COMMANDS_TO_CREATE_KEY[textType](keyName), { paste: true });
5757
await t.pressKey('enter');
5858
}
5959
}
6060
await t.click(cliPage.cliCollapseButton);
61-
61+
await t.click(browserPage.refreshKeysButton);
6262
for (const { textType, keyName } of keyTypes) {
6363
await browserPage.selectFilterGroupType(textType);
64-
const isKeyIsDisplayedInTheList = await browserPage.isKeyIsDisplayedInTheList(keyName);
65-
await t.expect(isKeyIsDisplayedInTheList).ok(`The key of type ${textType} was found`);
64+
await t.expect(await browserPage.isKeyIsDisplayedInTheList(keyName)).ok(`The key of type ${textType} was found`);
6665
await browserPage.deleteKey();
6766
}
6867
});

tests/e2e/tests/critical-path/workbench/command-results.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ test
132132
await workbenchPage.sendCommandInWorkbench(command);
133133
}
134134
//Verify the quick access to command history by up button
135+
await t.click(workbenchPage.queryInput);
135136
for(const command of commands.reverse()) {
136-
await t.click(workbenchPage.queryInput);
137137
await t.pressKey('up');
138138
let script = await workbenchPage.scriptsLines.textContent;
139139
await t.expect(script.replace(/\s/g, ' ')).contains(command, 'Result of Manual command is displayed');

0 commit comments

Comments
 (0)