Skip to content

Commit f203602

Browse files
authored
Update the VsixInstallationDisableTest test to work correctly with the latest changes (#23771)
1 parent 6acaeda commit f203602

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

tests/e2e/specs/miscellaneous/VsixInstallationDisableTest.spec.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { ShellExecutor } from '../../utils/ShellExecutor';
2525
import { ITestWorkspaceUtil } from '../../utils/workspace/ITestWorkspaceUtil';
2626

2727
import { Dashboard } from '../../pageobjects/dashboard/Dashboard';
28-
import { NotificationHandler } from '../../pageobjects/ide/NotificationHandler';
2928
import { CommandPalette } from '../../pageobjects/ide/CommandPalette';
3029
import { ExtensionsView } from '../../pageobjects/ide/ExtensionsView';
3130
import { ExplorerView } from '../../pageobjects/ide/ExplorerView';
@@ -47,7 +46,6 @@ suite(`Verify VSIX installation can be disabled via configuration ${BASE_TEST_CO
4746
const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
4847
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
4948
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
50-
const notificationHandler: NotificationHandler = e2eContainer.get(CLASSES.NotificationHandler);
5149
const commandPalette: CommandPalette = e2eContainer.get(CLASSES.CommandPalette);
5250
const extensionsView: ExtensionsView = e2eContainer.get(CLASSES.ExtensionsView);
5351
const explorerView: ExplorerView = e2eContainer.get(CLASSES.ExplorerView);
@@ -120,11 +118,6 @@ suite(`Verify VSIX installation can be disabled via configuration ${BASE_TEST_CO
120118
await projectAndFileTests.waitWorkspaceReadinessForCheCodeEditor();
121119
});
122120

123-
test('Verify VSIX disabled notifications', async function (): Promise<void> {
124-
const hasDisableNotification: boolean = await notificationHandler.checkForNotification('install from vsix command is disabled');
125-
expect(hasDisableNotification).to.be.true;
126-
});
127-
128121
test('Perform trust author dialog', async function (): Promise<void> {
129122
await projectAndFileTests.performTrustAuthorDialog();
130123
});
@@ -160,7 +153,7 @@ suite(`Verify VSIX installation can be disabled via configuration ${BASE_TEST_CO
160153
const isInstalled: boolean = installedExtensions.some((installed: string): boolean =>
161154
installed.toLowerCase().includes(extensionName.toLowerCase())
162155
);
163-
expect(isInstalled).to.equal(false, `Default VSIX extension "${extensionName}" should not be auto-installed`);
156+
expect(isInstalled).to.equal(true, `Default VSIX extension "${extensionName}" should be auto-installed`);
164157
}
165158
});
166159

@@ -188,11 +181,6 @@ suite(`Verify VSIX installation can be disabled via configuration ${BASE_TEST_CO
188181
await projectAndFileTests.waitWorkspaceReadinessForCheCodeEditor();
189182
});
190183

191-
test('Verify default extension installation success notifications', async function (): Promise<void> {
192-
const hasSuccessNotification: boolean = await notificationHandler.checkForNotification('Completed installing extension');
193-
expect(hasSuccessNotification).to.be.true;
194-
});
195-
196184
test('Perform trust author dialog', async function (): Promise<void> {
197185
await projectAndFileTests.performTrustAuthorDialog();
198186
});

0 commit comments

Comments
 (0)