This commit is contained in:
2018-12-06 18:52:03 +00:00
parent 8e6ddbd943
commit 11c7dd096b
7 changed files with 88 additions and 41 deletions

View File

@@ -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;

View File

@@ -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"));