package integration_test

import (
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	. "github.com/sclevine/agouti/dsl"
	. "github.com/sclevine/agouti/internal/integration"
	"testing"
)

func TestIntegration(t *testing.T) {
	RegisterFailHandler(Fail)
	RunSpecs(t, "Integration Suite")
}

var _ = BeforeSuite(func() {
	StartPhantomJS()
	Server.Start()
})

var _ = AfterSuite(func() {
	Server.Close()
	StopWebdriver()
})

package integration_test

import (
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	. "github.com/sclevine/agouti/dsl"
	. "github.com/sclevine/agouti/internal/integration"
	"testing"
)

func TestIntegration(t *testing.T) {
	RegisterFailHandler(Fail)
	RunSpecs(t, "Integration Suite")
}

var _ = BeforeSuite(func() {
	StartChrome()
	Server.Start()
})

var _ = AfterSuite(func() {
	Server.Close()
	StopWebdriver()
})

--- 
+++ 
@@ -14,7 +14,7 @@
 }
 
 var _ = BeforeSuite(func() {
-	StartChrome()
+	StartPhantomJS()
 	Server.Start()
 })
 
Switch integration specs back to PhantomJS
