mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Adding more awaits to check running cluster
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
d269032553
commit
30ce29edab
@ -96,6 +96,7 @@ describe("Lens integration tests", () => {
|
|||||||
|
|
||||||
it('adds cluster in default workspace', async () => {
|
it('adds cluster in default workspace', async () => {
|
||||||
await addMinikubeCluster(app);
|
await addMinikubeCluster(app);
|
||||||
|
await app.client.waitUntilTextExists("pre.kube-auth-out", "Authentication proxy started");
|
||||||
await app.client.waitForExist(`iframe[name="minikube"]`);
|
await app.client.waitForExist(`iframe[name="minikube"]`);
|
||||||
await app.client.waitForVisible(".ClustersMenu .ClusterIcon.active");
|
await app.client.waitForVisible(".ClustersMenu .ClusterIcon.active");
|
||||||
});
|
});
|
||||||
@ -104,6 +105,8 @@ describe("Lens integration tests", () => {
|
|||||||
await app.client.click('#current-workspace .Icon');
|
await app.client.click('#current-workspace .Icon');
|
||||||
await app.client.click('.WorkspaceMenu li[title="test description"]');
|
await app.client.click('.WorkspaceMenu li[title="test description"]');
|
||||||
await addMinikubeCluster(app);
|
await addMinikubeCluster(app);
|
||||||
|
await app.client.waitUntilTextExists("pre.kube-auth-out", "Authentication proxy started");
|
||||||
|
await app.client.waitForExist(`iframe[name="minikube"]`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('checks if default workspace has active cluster', async () => {
|
it('checks if default workspace has active cluster', async () => {
|
||||||
@ -145,7 +148,6 @@ describe("Lens integration tests", () => {
|
|||||||
await app.client.click("div.minikube"); // select minikube context
|
await app.client.click("div.minikube"); // select minikube context
|
||||||
} // else the only context, which must be 'minikube', is automatically selected
|
} // else the only context, which must be 'minikube', is automatically selected
|
||||||
await app.client.click("div.Select__control"); // hide the context drop-down list (it might be obscuring the Add cluster(s) button)
|
await app.client.click("div.Select__control"); // hide the context drop-down list (it might be obscuring the Add cluster(s) button)
|
||||||
await app.client.click("button.primary"); // blur focus from previous select
|
|
||||||
await app.client.click("button.primary"); // add minikube cluster
|
await app.client.click("button.primary"); // add minikube cluster
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user