Skip to content

Commit ed77530

Browse files
committed
Fix "cancel during deployment" test
1 parent 1229eeb commit ed77530

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

packages/databricks-vscode/src/test/e2e/run_files.e2e.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,22 @@ describe("Run files", async function () {
5151
await executeCommandWhenAvailable("Databricks: Upload and Run File");
5252
await browser.waitUntil(async () => {
5353
const notifications = await workbench.getNotifications();
54+
console.log("Notifications:", notifications.length);
5455
for (const notification of notifications) {
5556
const message = await notification.getMessage();
57+
console.log("Message:", message);
5658
if (message.includes("Uploading bundle assets")) {
57-
await notification.takeAction("Cancel");
59+
const elements = await notification.actions$.$$(
60+
notification.locators.action
61+
);
62+
console.log("Elements:", elements.length);
63+
for (const element of elements) {
64+
const text = await element.getText();
65+
if (text === "Cancel") {
66+
await element.click();
67+
break;
68+
}
69+
}
5870
return true;
5971
}
6072
}

0 commit comments

Comments
 (0)