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 notify cog

Verifying the functionality for the notify cog consists of navigating to the products listing page, adding an item to the shopping cart by clicking the Add to Cart button on a listed product, and then verifying that the notification appeared on the web page.

Here is the test suite for the notify cog, which is implemented in the notifycog_test.go source file, located in the client/test/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 ...

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