Skip to content

Commit

Permalink
adding other cases too
Browse files Browse the repository at this point in the history
  • Loading branch information
aiday-mar committed Feb 7, 2025
1 parent 60ed402 commit d535584
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions test/smoke/src/areas/preferences/preferences.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export function setup(logger: Logger) {

await app.workbench.keybindingsEditor.updateKeybinding('workbench.action.toggleSidebarPosition', 'View: Toggle Primary Side Bar Position', 'ctrl+u', 'Control+U');

await app.code.dispatchKeybinding('ctrl+u');
await app.workbench.activitybar.waitForActivityBar(ActivityBarPosition.RIGHT);
await app.code.dispatchKeybinding('ctrl+u', () => app.workbench.activitybar.waitForActivityBar(ActivityBarPosition.RIGHT));
});
});

Expand All @@ -53,8 +52,9 @@ export function setup(logger: Logger) {
const app = this.app as Application;

await app.workbench.editors.newUntitledFile();
await app.code.dispatchKeybinding('enter');
await app.code.waitForElements('.line-numbers', false, elements => !!elements.length);
await app.code.dispatchKeybinding('enter', async () => {
await app.code.waitForElements('.line-numbers', false, elements => !!elements.length);
});

// Turn off line numbers
await app.workbench.settingsEditor.searchSettingsUI('editor.lineNumbers');
Expand Down
10 changes: 6 additions & 4 deletions test/smoke/src/areas/search/search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ export function setup(logger: Logger) {
const app = this.app as Application;
await app.workbench.search.openSearchViewlet();

await app.code.dispatchKeybinding('PageUp');
await app.workbench.search.hasActivityBarMoved();
await app.code.dispatchKeybinding('PageUp', async () => {
await app.workbench.search.hasActivityBarMoved();
});

await app.code.dispatchKeybinding('PageUp');
await app.workbench.search.hasActivityBarMoved();
await app.code.dispatchKeybinding('PageUp', async () => {
await app.workbench.search.hasActivityBarMoved();
});
});

it('searches for body & checks for correct result number', async function () {
Expand Down

0 comments on commit d535584

Please sign in to comment.