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:
Lucas Clemente
2016-06-05 14:44:54 +02:00
parent f34890e608
commit e2f5d72301
4 changed files with 168 additions and 67 deletions

View 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"))
})
})