This commit is contained in:
Ellis Johnson 2022-06-08 10:58:42 +10:00
Родитель 89c9b83ac2
Коммит 6ab53061ef
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -5,6 +5,7 @@ package e2e
import ( import (
"os" "os"
"time"
. "github.com/onsi/ginkgo" //nolint . "github.com/onsi/ginkgo" //nolint
. "github.com/onsi/gomega" //nolint . "github.com/onsi/gomega" //nolint
@ -12,7 +13,7 @@ import (
. "github.com/tebeka/selenium" //nolint . "github.com/tebeka/selenium" //nolint
) )
var _ = Describe("Admin Portal E2E Testing", func() { var _ = FDescribe("Admin Portal E2E Testing", func() {
BeforeEach(skipIfNotInDevelopmentEnv) BeforeEach(skipIfNotInDevelopmentEnv)
var wdPoint *WebDriver var wdPoint *WebDriver
var wd WebDriver var wd WebDriver
@ -60,7 +61,7 @@ var _ = Describe("Admin Portal E2E Testing", func() {
Expect(text.Text()).To(Equal("Showing 0 items")) 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']")) err := wd.Wait(ElementIsLocated(ByCSSSelector, "div[data-automation-key='name']"))
if err != nil { if err != nil {
panic(err) panic(err)
@ -81,7 +82,7 @@ var _ = Describe("Admin Portal E2E Testing", func() {
panic(err) panic(err)
} }
err = wd.Wait(ElementIsLocated(ByCSSSelector, "span.css-287")) err = wd.WaitWithTimeout(ElementIsLocated(ByCSSSelector, "span.css-287"), time.Minute)
if err != nil { if err != nil {
panic(err) panic(err)
} }