mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
add integration test for workspace overview switching
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
1aff341f0e
commit
3485a6aef3
@ -3,6 +3,7 @@ import * as utils from "../helpers/utils";
|
||||
import { addMinikubeCluster, minikubeReady } from "../helpers/minikube";
|
||||
import { exec } from "child_process";
|
||||
import * as util from "util";
|
||||
import { delay } from "../../src/common/utils";
|
||||
|
||||
export const promiseExec = util.promisify(exec);
|
||||
|
||||
@ -65,6 +66,19 @@ describe("Lens integration tests", () => {
|
||||
await app.client.waitForVisible(".ClustersMenu .ClusterIcon.active");
|
||||
});
|
||||
|
||||
it("shows workspace clusters in workspace overview", async () => {
|
||||
await switchToWorkspace("default");
|
||||
await app.client.click("[data-test-id=workspace-menu]");
|
||||
await delay(500);
|
||||
await app.client.click("[data-test-id=workspace-overview-menu-item]");
|
||||
await app.client.waitUntilTextExists("h2", "default");
|
||||
await app.client.waitUntilTextExists(".WorkspaceOverview .Table .TableRow .name", "minikube");
|
||||
await switchToWorkspace("test-workspace");
|
||||
await app.client.waitUntilTextExists("h2", "test-workspace");
|
||||
await delay(2000);
|
||||
await app.client.waitUntilTextExists(".WorkspaceOverview .Table .NoItems", "Item list is empty");
|
||||
});
|
||||
|
||||
it("adds cluster in test-workspace", async () => {
|
||||
await switchToWorkspace("test-workspace");
|
||||
await addMinikubeCluster(app);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user