This commit is contained in:
@@ -353,16 +353,9 @@ namespace raven_integration
|
||||
{
|
||||
const string TEST_SEARCH_PHRASE = "element* aardvark";
|
||||
|
||||
//CREATE A TAG
|
||||
dynamic D = new JObject();
|
||||
D.name = Util.Uniquify("TAGSEARCH");
|
||||
ApiResponse a = await Util.PostAsync("Tag", await Util.GetTokenAsync("manager", "l3tm3in"), D.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
long TagId = a.ObjectResponse["data"]["id"].Value<long>();
|
||||
|
||||
|
||||
//CREATE A WIDGET
|
||||
D = new JObject();
|
||||
dynamic D = new JObject();
|
||||
D.name = Util.Uniquify("TAG search test WIDGET TAG AND PHRASE");
|
||||
D.dollarAmount = 1.11m;
|
||||
D.active = true;
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace raven_integration
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
Util.ValidateHTTPStatusCode(a, 200);
|
||||
a.ObjectResponse["data"]["key"].Value<string>().Should().Be("widget");
|
||||
((JArray)a.ObjectResponse["data"]["flds"]).Count.Should().Be(8);
|
||||
((JArray)a.ObjectResponse["data"]["flds"]).Count.Should().Be(9);
|
||||
a.ObjectResponse["data"]["flds"][3]["lt"].Value<string>().Should().Be("Price");
|
||||
|
||||
a = await Util.GetAsync("Widget/FilterOptions", await Util.GetTokenAsync("es", "es"));
|
||||
|
||||
Reference in New Issue
Block a user