This commit is contained in:
@@ -18,10 +18,10 @@ namespace raven_integration
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void PickListSortByFieldAscendingWorks()
|
||||
public async void WidgetPickListSortByFieldAscendingWorks()
|
||||
{
|
||||
|
||||
var WidgetNameStart = Util.Uniquify("PickListSortByFieldAscendingWorks");
|
||||
var WidgetNameStart = Util.Uniquify("WidgetPickListSortByFieldAscendingWorks");
|
||||
|
||||
//CREATE 3 TEST WIDGETS TO TEST ORDER
|
||||
long FirstInOrderWidgetId = 0;
|
||||
@@ -151,23 +151,26 @@ 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(9);
|
||||
a.ObjectResponse["data"]["flds"][3]["lt"].Value<string>().Should().Be("Price");
|
||||
((JArray)a.ObjectResponse["data"]["flds"]).Count.Should().Be(10);
|
||||
|
||||
int DollarAmountFieldNumber = 4;
|
||||
|
||||
a.ObjectResponse["data"]["flds"][DollarAmountFieldNumber]["lt"].Value<string>().Should().Be("Price");
|
||||
|
||||
a = await Util.GetAsync("Widget/FilterOptions", await Util.GetTokenAsync("es", "es"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
Util.ValidateHTTPStatusCode(a, 200);
|
||||
a.ObjectResponse["data"]["flds"][3]["lt"].Value<string>().Should().Be("Importe");
|
||||
a.ObjectResponse["data"]["flds"][DollarAmountFieldNumber]["lt"].Value<string>().Should().Be("Importe");
|
||||
|
||||
a = await Util.GetAsync("Widget/FilterOptions", await Util.GetTokenAsync("fr", "fr"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
Util.ValidateHTTPStatusCode(a, 200);
|
||||
a.ObjectResponse["data"]["flds"][3]["lt"].Value<string>().Should().Be("Montant");
|
||||
a.ObjectResponse["data"]["flds"][DollarAmountFieldNumber]["lt"].Value<string>().Should().Be("Montant");
|
||||
|
||||
a = await Util.GetAsync("Widget/FilterOptions", await Util.GetTokenAsync("de", "de"));
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
Util.ValidateHTTPStatusCode(a, 200);
|
||||
a.ObjectResponse["data"]["flds"][3]["lt"].Value<string>().Should().Be("Betrag");
|
||||
a.ObjectResponse["data"]["flds"][DollarAmountFieldNumber]["lt"].Value<string>().Should().Be("Betrag");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user