Skip to content

Commit

Permalink
Improve stability of Slack E2E tests (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec authored Jul 2, 2024
1 parent ea01a88 commit 179f52d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/cloud-slack-dev-e2e/botkube_page_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 179f52d

Please sign in to comment.