This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user