aboutsummaryrefslogtreecommitdiffstats
path: root/scenario/datastore-scenarios.js
blob: a844ac5377c7c9b107445babeb8cf96d16f9b745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
angular.scenarioDef.datastore = {
  $before:[
    {Given:"dataset",
      dataset:{
        Book:[{$id:'moby', name:"Moby Dick"},
              {$id:'gadsby', name:'Great Gadsby'}]
      }
    },
    {Given:"browser", at:"datastore.html#book=moby"},
  ],
  checkLoadBook:[
    {Then:"drainRequestQueue"},

    {Then:"text", at:"{{book.$id}}", should_be:"moby"},
    {Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Great Gahdsby"},
    {Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Moby Dick"},

  ]
};