From 179f52d837e90376fc416bf10d178c8b06346bb8 Mon Sep 17 00:00:00 2001 From: Pawel Kosiec Date: Tue, 2 Jul 2024 16:50:02 +0200 Subject: [PATCH] Improve stability of Slack E2E tests (#1466) --- test/cloud-slack-dev-e2e/botkube_page_helpers_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/cloud-slack-dev-e2e/botkube_page_helpers_test.go b/test/cloud-slack-dev-e2e/botkube_page_helpers_test.go index 953861d71..44d466f56 100644 --- a/test/cloud-slack-dev-e2e/botkube_page_helpers_test.go +++ b/test/cloud-slack-dev-e2e/botkube_page_helpers_test.go @@ -228,20 +228,25 @@ func (p *BotkubeCloudPage) UpdateKubectlNamespace(t *testing.T) { t.Log("Submitting changes") p.page.MustWaitStable() p.page.Screenshot("before-deploying-plugin-changes") - p.page.MustElementR("button", "/Deploy changes/i").MustClick() + p.page.MustElementR("button", "/Deploy changes/i"). + MustWaitEnabled(). + MustClick() p.page.Screenshot("after-deploying-plugin-changes") + time.Sleep(3 * time.Second) + p.page.Screenshot("after-deploying-plugin-changes-later") } func (p *BotkubeCloudPage) VerifyUpdatedKubectlNamespace(t *testing.T) { t.Log("Verifying that the 'namespace' value was updated and persisted properly") + time.Sleep(3 * time.Second) p.openKubectlUpdateForm() p.page.MustElementR("input#root_defaultNamespace", "kube-system") } func (p *BotkubeCloudPage) openKubectlUpdateForm() { p.page.Screenshot("before-selecting-plugins-tab") - p.page.MustElementR(`div[role="tab"]`, "Plugins").MustFocus().MustClick().MustWaitStable() + p.page.MustElementR(`div[role="tab"]`, "Plugins").MustClick() p.page.MustWaitStable() p.page.Screenshot("after-selecting-plugins-tab")