mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
This reverts commit 8081d35f9c.
This commit is contained in:
1 parent
5d172b89db
commit
820b2d1b7a
7 files changed
+24
-47
No files matched your search
@@ -328,8 +328,6 @@ utils.describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
||||
}, 10*60*1000);
|
||||
|
||||
afterEach(async () => {
|
||||
await frame.click(`[data-testid="sidebar-cluster-dropdown"]`);
|
||||
await frame.click(`.Menu >> text="Disconnect"`);
|
||||
await cleanup();
|
||||
}, 10*60*1000);
|
||||
|
||||
@@ -339,7 +337,6 @@ utils.describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
||||
await frame.waitForSelector(`.Menu >> text="Settings"`);
|
||||
await frame.waitForSelector(`.Menu >> text="Disconnect"`);
|
||||
await frame.waitForSelector(`.Menu >> text="Delete"`);
|
||||
await frame.click(`[data-testid="sidebar-cluster-dropdown"]`);
|
||||
});
|
||||
|
||||
it("should navigate around common cluster pages", async () => {
|
||||
@@ -373,7 +370,7 @@ utils.describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
||||
}
|
||||
}, 10*60*1000);
|
||||
|
||||
|
||||
|
||||
|
||||
it("show logs and highlight the log search entries", async () => {
|
||||
await frame.click(`a[href="/workloads"]`);
|
||||
|
||||
@@ -72,12 +72,7 @@ export async function start() {
|
||||
...process.env,
|
||||
},
|
||||
timeout: 100_000,
|
||||
});
|
||||
|
||||
const cleanup = async () => {
|
||||
await app.close();
|
||||
await remove(CICD).catch(noop);
|
||||
};
|
||||
} as Parameters<typeof electron["launch"]>[0]);
|
||||
|
||||
try {
|
||||
const window = await getMainWindow(app);
|
||||
@@ -85,10 +80,14 @@ export async function start() {
|
||||
return {
|
||||
app,
|
||||
window,
|
||||
cleanup,
|
||||
cleanup: async () => {
|
||||
await app.close();
|
||||
await remove(CICD).catch(noop);
|
||||
},
|
||||
};
|
||||
} catch (error) {
|
||||
await cleanup();
|
||||
await app.close();
|
||||
await remove(CICD).catch(noop);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user