Skip to content

Commit

Permalink
test: fix extensionEditor test
Browse files Browse the repository at this point in the history
  • Loading branch information
djelinek committed Jan 7, 2025
1 parent f059822 commit ce6bef6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/test-project/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"window.title": "${activeEditorShort}${separator}folder: ${rootPath}"
"window.title": "${activeEditorShort}${separator}folder: ${rootPath}",
"window.zoomLevel": -1
}
13 changes: 12 additions & 1 deletion tests/test-project/src/test/editor/extensionEditor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ import {
ViewControl,
VSBrowser,
WebDriver,
Workbench,
BottomBarPanel,
} from 'vscode-extension-tester';
import * as pjson from '../../../package.json';
import * as path from 'path';

describe('Extension Editor', function () {
describe.only('Extension Editor', function () {
let driver: WebDriver;
let viewControl: ViewControl;
let extensionsView: SideBarView;
Expand Down Expand Up @@ -66,6 +68,15 @@ describe('Extension Editor', function () {
await item.click();
});

// ensure clean workbench
before(async function () {
const panel = new BottomBarPanel();
if (await panel.isDisplayed()) {
await panel.toggle(false);
}
await (await new Workbench().openNotificationsCenter()).clearAllNotifications();
});

after(async function () {
await viewControl.closeView();
await new EditorView().closeAllEditors();
Expand Down

0 comments on commit ce6bef6

Please sign in to comment.