O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Verifying the date picker cog

Verifying the functionality for the date picker cog consists of navigating to the Contact page, and clicking on the Time Sensitivity Date input field. This should trigger the display of the calendar widget.

Here is the test suite for the date picker cog, which is implemented in the datepickercog_test.go source file, located in the client/tests/go directory:

package mainimport (  "github.com/EngineerKamesh/igb/igweb/client/tests/go/caspertest"  "github.com/gopherjs/gopherjs/js")var wait = js.MakeFunc(func(this *js.Object, arguments []*js.Object) interface{} {  this.Call("waitForSelector", "#primaryContent")  return nil})var casper = js.Global.Get("casper")func main() { viewportParams := &caspertest.ViewportParams{Object: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required