1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add e2e test to cover kube api registration

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-04-26 09:11:05 -04:00
parent d42d2eb0c4
commit d1bf935d3d

View File

@ -137,7 +137,7 @@ utils.describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
); );
it( it(
`should create the ${TEST_NAMESPACE} and a pod in the namespace`, `should create the ${TEST_NAMESPACE} and a pod in the namespace and then remove that pod via the context menu`,
async () => { async () => {
await navigateToNamespaces(frame); await navigateToNamespaces(frame);
await frame.click("button.add-button"); await frame.click("button.add-button");
@ -207,6 +207,10 @@ utils.describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
await frame.click(".Dock .Button >> text='Create'"); await frame.click(".Dock .Button >> text='Create'");
await frame.waitForSelector(`.TableCell >> text=${testPodName}`); await frame.waitForSelector(`.TableCell >> text=${testPodName}`);
await frame.click(".TableRow .TableCell.menu");
await frame.click(".MenuItem >> text=Delete");
await frame.click("button >> text=Remove");
await frame.waitForSelector(`.TableCell >> text=${testPodName}`, { state: "detached" });
}, },
10 * 60 * 1000, 10 * 60 * 1000,
); );