From 99fc8d5ecdf3e974e69f37f8ac13c9f0c3047b40 Mon Sep 17 00:00:00 2001 From: Anton Misskii <124462506+amisskii@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:54:03 +0200 Subject: [PATCH] test: deploy container to the kind cluster scenario (#8617) * test: deploy container to the kind cluster scenario Signed-off-by: Anton Misskii * test: fix Signed-off-by: Anton Misskii * test: increase cluster creation timeout Signed-off-by: Anton Misskii * test: increase cluster creation timeout Signed-off-by: Anton Misskii * test: test Signed-off-by: Anton Misskii * test: fix Signed-off-by: Anton Misskii * fix: rebase Signed-off-by: Anton Misskii * fix: fix Signed-off-by: Anton Misskii * fix: increase container deletion timeout Signed-off-by: Anton Misskii * fix: show logs button Signed-off-by: Anton Misskii * fix: kind installation scenario Signed-off-by: Anton Misskii * test: separate spec Signed-off-by: Anton Misskii * test: use createkindcluster function in kind spec Signed-off-by: Anton Misskii * fix: refactoring Signed-off-by: Anton Misskii --- .../src/lib/pod/DeployPodToKube.svelte | 2 +- tests/playwright/src/index.ts | 1 + tests/playwright/src/model/core/types.ts | 8 +- .../src/model/pages/container-details-page.ts | 9 ++ .../model/pages/create-kind-cluster-page.ts | 23 ++-- .../model/pages/deploy-to-kubernetes-page.ts | 120 ++++++++++++++++++ tests/playwright/src/model/pages/pods-page.ts | 11 ++ .../src/model/workbench/status-bar.ts | 5 + .../src/specs/deploy-to-kubernetes.spec.ts | 111 ++++++++++++++++ tests/playwright/src/specs/kind.spec.ts | 63 +++------ tests/playwright/src/utility/operations.ts | 75 ++++++++++- 11 files changed, 369 insertions(+), 59 deletions(-) create mode 100644 tests/playwright/src/model/pages/deploy-to-kubernetes-page.ts create mode 100644 tests/playwright/src/specs/deploy-to-kubernetes.spec.ts diff --git a/packages/renderer/src/lib/pod/DeployPodToKube.svelte b/packages/renderer/src/lib/pod/DeployPodToKube.svelte index 01d266121..34e111fc0 100644 --- a/packages/renderer/src/lib/pod/DeployPodToKube.svelte +++ b/packages/renderer/src/lib/pod/DeployPodToKube.svelte @@ -511,7 +511,7 @@ function updateKubeResult() { >Kubernetes Namespace: