This commit is contained in:
2020-03-23 22:25:39 +00:00
parent e9429e224d
commit 5287fa6027

View File

@@ -251,6 +251,23 @@ namespace raven_integration
}
/// <summary>
/// test get picklist for single predefined value only
/// </summary>
[Fact]
public async void FetchWidgetPickListPreDefined()
{
//fetch the manager account which always exists
ApiResponse a = await Util.GetAsync("PickList/List?ayaType=3&preId=1", await Util.GetTokenAsync("BizAdminFull"));
Util.ValidateDataReturnResponseOk(a);
//assert contains 1 record
var pickList = ((JArray)a.ObjectResponse["data"]);
pickList.Count.Should().Be(1);
pickList[0]["id"].Value<long>().Should().Be(1);
}
/// <summary>
/// test get picklist for widget with basic autocomplete query only
/// </summary>