Skip to content

Commit

Permalink
Attempts to get tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
manstis committed Dec 9, 2024
1 parent 4b3339c commit d4eb923
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/ui-test/lightspeedOneClickTrialUITest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
ViewControl,
ViewSection,
VSBrowser,
until,
WebElement,
WebView,
WebviewView,
Expand Down Expand Up @@ -255,6 +256,11 @@ describe("Test One Click Trial feature", () => {
await tab.select();
await tab.sendKeys(Key.CONTROL, "z", "z", "z", Key.NULL);
await editorView.closeAllEditors();

// The undo's don't seem to (always) work.. So discard changes
const dialog = new ModalDialog();
await dialog.pushButton(`Don't Save`);
await dialog.getDriver().wait(until.stalenessOf(dialog), 2000);
});

it("Sign out using Accounts global action", async () => {
Expand Down
2 changes: 2 additions & 0 deletions test/ui-test/lightspeedUiTestPlaybookGenTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Workbench,
VSBrowser,
EditorView,
until,
WebView,
ModalDialog,
} from "vscode-extension-tester";
Expand Down Expand Up @@ -144,6 +145,7 @@ describe("Verify playbook generation features work as expected", function () {
await workbenchExecuteCommand("View: Close All Editor Groups");
const dialog = new ModalDialog();
await dialog.pushButton(`Don't Save`);
await dialog.getDriver().wait(until.stalenessOf(dialog), 2000);

/* verify generated events */
const expected = [
Expand Down
2 changes: 2 additions & 0 deletions test/ui-test/lightspeedUiTestPlaybookGenWebviewPart2Test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Workbench,
VSBrowser,
EditorView,
until,
WebView,
ModalDialog,
} from "vscode-extension-tester";
Expand Down Expand Up @@ -173,6 +174,7 @@ describe("Verify playbook generation features work as expected", function () {
await workbenchExecuteCommand("View: Close All Editor Groups");
const dialog = new ModalDialog();
await dialog.pushButton(`Don't Save`);
await dialog.getDriver().wait(until.stalenessOf(dialog), 2000);

/* verify generated events */
const expected = [
Expand Down
2 changes: 2 additions & 0 deletions test/ui-test/walkthroughUiTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
EditorView,
ModalDialog,
SettingsEditor,
until,
Workbench,
} from "vscode-extension-tester";
import { updateSettings, sleep } from "./uiTestHelper";
Expand Down Expand Up @@ -98,5 +99,6 @@ describe("Check walkthroughs, elements and associated commands", async () => {
await workbench.executeCommand("View: Close All Editor Groups");
const dialogBox = new ModalDialog();
await dialogBox.pushButton(`Don't Save`);
await dialogBox.getDriver().wait(until.stalenessOf(dialogBox), 2000);
});
});

0 comments on commit d4eb923

Please sign in to comment.