forked from quic-go/quic-go
add an integration test using a dockered chrome via selenium
this commit also moves the {Before,After}Suite functions from the
integration_test.go file into the integrationtests_suite_test.go file,
and adds the docker-specific hooks.
ref #162
This commit is contained in:
16
integrationtests/chrome_test.go
Normal file
16
integrationtests/chrome_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package integrationtests
|
||||
|
||||
import (
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
)
|
||||
|
||||
var _ = Describe("Chrome tests", func() {
|
||||
It("loads a simple hello world page using quic", func() {
|
||||
err := wd.Get("https://quic.clemente.io/hello")
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
source, err := wd.PageSource()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(source).To(ContainSubstring("Hello, World!\n"))
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user