From 6ab53061ef3fd3ee1d40500713ec232804c6f855 Mon Sep 17 00:00:00 2001 From: Ellis Johnson Date: Wed, 8 Jun 2022 10:58:42 +1000 Subject: [PATCH] Added extra timeout to test --- test/e2e/admin_portal.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/e2e/admin_portal.go b/test/e2e/admin_portal.go index d7affcd61..db6257c5b 100644 --- a/test/e2e/admin_portal.go +++ b/test/e2e/admin_portal.go @@ -5,6 +5,7 @@ package e2e import ( "os" + "time" . "github.com/onsi/ginkgo" //nolint . "github.com/onsi/gomega" //nolint @@ -12,7 +13,7 @@ import ( . "github.com/tebeka/selenium" //nolint ) -var _ = Describe("Admin Portal E2E Testing", func() { +var _ = FDescribe("Admin Portal E2E Testing", func() { BeforeEach(skipIfNotInDevelopmentEnv) var wdPoint *WebDriver var wd WebDriver @@ -60,7 +61,7 @@ var _ = Describe("Admin Portal E2E Testing", func() { Expect(text.Text()).To(Equal("Showing 0 items")) }) - FIt("Should be able to populate cluster info panel correctly", func() { + It("Should be able to populate cluster info panel correctly", func() { err := wd.Wait(ElementIsLocated(ByCSSSelector, "div[data-automation-key='name']")) if err != nil { panic(err) @@ -81,7 +82,7 @@ var _ = Describe("Admin Portal E2E Testing", func() { panic(err) } - err = wd.Wait(ElementIsLocated(ByCSSSelector, "span.css-287")) + err = wd.WaitWithTimeout(ElementIsLocated(ByCSSSelector, "span.css-287"), time.Minute) if err != nil { panic(err) }