This commit is contained in:
2020-02-15 01:22:26 +00:00
parent 48d9040ec3
commit ad994a5869
2 changed files with 14 additions and 12 deletions

View File

@@ -34,10 +34,10 @@ namespace raven_integration
} }
/// <summary> /// <summary>
/// Return un - filtered/sorted fields test /// Return un - filtered/sorted fields and custom fields test
/// </summary> /// </summary>
[Fact] [Fact]
public async void DataListShouldReturnAllFieldsSpecifiedEvenIfUnsortedOrFiltered() public async void DataListShouldReturnAllFieldsSpecifiedEvenIfUnsortedOrFilteredAndCustomToo()
{ {
dynamic dListView = new JArray(); dynamic dListView = new JArray();

View File

@@ -144,7 +144,6 @@ namespace raven_integration
dynamic dListView = new JArray(); dynamic dListView = new JArray();
//name starts with filter to constrict to widgets that this test block created only //name starts with filter to constrict to widgets that this test block created only
dListView.Add(Util.BuildSimpleFilterDataListViewColumn("widgetname", Util.OpStartsWith, WidgetNameStart));
//SORT ORDER ################### //SORT ORDER ###################
// dynamic dsortarray = new JArray(); // dynamic dsortarray = new JArray();
@@ -152,7 +151,10 @@ namespace raven_integration
// dsort.fld = "widgetstartdate"; // dsort.fld = "widgetstartdate";
// dsort.dir = "+"; // dsort.dir = "+";
// dsortarray.Add(dsort); // dsortarray.Add(dsort);
dListView.Add(Util.BuildSimpleSortDataListViewColumn("widgetname", "+"));
//both conditions filter and sort here
dListView.Add(Util.BuildSimpleFilterDataListViewColumn("widgetname", Util.OpStartsWith, WidgetNameStart, "+"));
//NOW FETCH WIDGET LIST WITH FILTER //NOW FETCH WIDGET LIST WITH FILTER