@sankhyalabs/core 6.0.1 → 6.0.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -41,8 +41,8 @@ export class DataUnitInMemoryLoader {
|
|
|
41
41
|
this._initialRecords = this.buildInitialRecords(records, columns);
|
|
42
42
|
if (!this._dataUnit)
|
|
43
43
|
return;
|
|
44
|
-
//Isso força o refresh internamente no datunit
|
|
45
|
-
this._dataUnit.
|
|
44
|
+
//Isso força o refresh internamente no datunit mantendo a seleção anterior
|
|
45
|
+
this._dataUnit.loadDataWithParams({ keepSelection: true });
|
|
46
46
|
}
|
|
47
47
|
static getConvertedValue(descriptor, strValue, dateFormat) {
|
|
48
48
|
if (!descriptor)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataUnitInMemoryLoader.js","sourceRoot":"","sources":["../../../src/dataunit/loader/dataUnitInMemoryLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,SAAS,EAMT,WAAW,GAEZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAgC,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACrG,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,OAAO,sBAAsB;IAQjC,YAAY,QAAuB,EAAE,OAAuB,EAAE,MAAqC;;QAL3F,oBAAe,GAAkB,EAAE,CAAC;QAO1C,IAAI,CAAC,QAAQ,GAAG,QAAwB,CAAC;QACzC,IAAI,CAAC,gBAAgB,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,gBAAgB,mCAAI,kBAAkB,CAAC,UAAU,CAAC;QAClF,IAAI,CAAC,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAmB,CAAC;QAE9C,IAAI,CAAC,SAAS,GAAG,IAAI,QAAQ,CAAC,sBAAsB,CAAC,wBAA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oBACxG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC;iBAC3C;gBAED,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACtC,CAAC,CAAC,CAAC;YAEH,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC;IAEM,YAAY,CAAC,SAAmB,EAAE,SAAwB;QAC/D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IACtD,CAAC;;AAxJsB,+CAAwB,GAAG,kBAAkB,CAAC;AAC9C,wCAAiB,GAAG,GAAG,CAAC"}
|
package/package.json
CHANGED
package/reports/test-report.xml
CHANGED
|
@@ -1,215 +1,215 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<unitTest version="1">
|
|
3
3
|
<file path="/builds/dti/design-system/sankhyacore/src/utils/test/objectUtils.spec.ts">
|
|
4
|
-
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="
|
|
5
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="
|
|
6
|
-
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="
|
|
7
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="
|
|
8
|
-
<testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="
|
|
4
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects have the same property value" duration="192"/>
|
|
5
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects have different property values" duration="0"/>
|
|
6
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true if both objects are equivalent with custom property to compare" duration="1"/>
|
|
7
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if both objects are not equivalent with custom property to compare" duration="13"/>
|
|
8
|
+
<testCase name="ObjectUtils hasEquivalentValues should return false if one object does not have the property" duration="1"/>
|
|
9
9
|
<testCase name="ObjectUtils hasEquivalentValues should return true if comparing primitive values directly" duration="0"/>
|
|
10
10
|
<testCase name="ObjectUtils hasEquivalentValues should return false if comparing different primitive values" duration="1"/>
|
|
11
|
-
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="
|
|
11
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing object with a null value" duration="1"/>
|
|
12
12
|
<testCase name="ObjectUtils hasEquivalentValues should return false when comparing object with null and non-null value" duration="0"/>
|
|
13
|
-
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="
|
|
14
|
-
<testCase name="ObjectUtils should get an object value based on its path" duration="
|
|
13
|
+
<testCase name="ObjectUtils hasEquivalentValues should return true when comparing non-object values that are equal" duration="0"/>
|
|
14
|
+
<testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
|
|
15
15
|
<testCase name="ObjectUtils should get an object value based on its path" duration="1"/>
|
|
16
16
|
<testCase name="ObjectUtils should return undefined if the path doesn't exist in the object" duration="0"/>
|
|
17
17
|
</file>
|
|
18
18
|
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaModel.spec.ts">
|
|
19
|
-
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="
|
|
19
|
+
<testCase name="StringUtils it should return the undefined and [] to Criteria Props through new class with empty constructor" duration="88"/>
|
|
20
20
|
<testCase name="StringUtils it should modify "expressions" and "parameters" properties through Setters methods" duration="1"/>
|
|
21
21
|
<testCase name="StringUtils it should return "expression" and "parameters" setted through constructor method" duration="1"/>
|
|
22
|
-
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="
|
|
23
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="
|
|
22
|
+
<testCase name="StringUtils it should return a Criteria class with "expression" and "parameters" as needed setted through "append" method" duration="69"/>
|
|
23
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "append" method" duration="13"/>
|
|
24
24
|
<testCase name="StringUtils it should return undefined as "expression" and "[]" as parameters as we use an empty criteria as first entry in the constructor" duration="1"/>
|
|
25
25
|
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
26
|
-
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="2"/>
|
|
27
26
|
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
28
|
-
<testCase name="StringUtils it should return a Criteria class with "
|
|
27
|
+
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "OR" method" duration="1"/>
|
|
28
|
+
<testCase name="StringUtils it should return a Criteria class with "Expression" and "parameters" concatenaded as needed setted through "AND" method" duration="83"/>
|
|
29
29
|
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
30
30
|
<testCase name="StringUtils it should return a Criteria class with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
31
31
|
<testCase name="StringUtils it should return a toJSON object with "Criteria class" and "parameters" concatenaded as needed setted through "AND" method" duration="1"/>
|
|
32
|
-
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="
|
|
33
|
-
</file>
|
|
34
|
-
<file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
|
|
35
|
-
<testCase name="HttpProvider Metodo GET" duration="1"/>
|
|
32
|
+
<testCase name="StringUtils it should return a toJSON object with through empty constructor" duration="0"/>
|
|
36
33
|
</file>
|
|
37
34
|
<file path="/builds/dti/design-system/sankhyacore/test/util/MaskFormatter.spec.ts">
|
|
38
|
-
<testCase name="Mask Formatter mask:CPF complete valid" duration="
|
|
35
|
+
<testCase name="Mask Formatter mask:CPF complete valid" duration="187"/>
|
|
39
36
|
<testCase name="Mask Formatter mask:CPF complete valid literals" duration="2"/>
|
|
40
|
-
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="
|
|
37
|
+
<testCase name="Mask Formatter mask:CPF incomplete valid" duration="1"/>
|
|
41
38
|
<testCase name="Mask Formatter mask:CPF incomplete valid placeholder" duration="1"/>
|
|
42
39
|
<testCase name="Mask Formatter mask:CPF too long valid" duration="1"/>
|
|
43
|
-
<testCase name="Mask Formatter mask:CPF invalid for string" duration="
|
|
44
|
-
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="
|
|
45
|
-
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="
|
|
46
|
-
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="
|
|
47
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="
|
|
48
|
-
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="
|
|
49
|
-
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="
|
|
50
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
51
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
|
|
52
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
53
|
-
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
54
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
|
|
55
|
-
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
40
|
+
<testCase name="Mask Formatter mask:CPF invalid for string" duration="312"/>
|
|
41
|
+
<testCase name="Mask Formatter mask:CPF invalid for being too long" duration="2"/>
|
|
42
|
+
<testCase name="Mask Formatter mask:Licence plate valid uppercase" duration="73"/>
|
|
43
|
+
<testCase name="Mask Formatter mask:Licence plate valid lowercase" duration="6"/>
|
|
44
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="10"/>
|
|
45
|
+
<testCase name="Mask Formatter mask:Licence plate invalid for being too short" duration="1"/>
|
|
46
|
+
<testCase name="Mask Formatter mask:Licence plate invalid for being too short with placeholder" duration="0"/>
|
|
56
47
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
57
48
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="0"/>
|
|
58
49
|
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="1"/>
|
|
50
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="0"/>
|
|
51
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
52
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="92"/>
|
|
53
|
+
<testCase name="Mask Formatter mask:Licence plate invalid" duration="2"/>
|
|
54
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask" duration="1"/>
|
|
55
|
+
<testCase name="Mask Formatter mask:Licence plate with AlphaNumerical Mask with placeholder" duration="0"/>
|
|
59
56
|
<testCase name="Mask Formatter mask:Licence plate invalid" duration="1"/>
|
|
60
57
|
</file>
|
|
58
|
+
<file path="/builds/dti/design-system/sankhyacore/test/http/HttpProvider.spec.ts">
|
|
59
|
+
<testCase name="HttpProvider Metodo GET" duration="1"/>
|
|
60
|
+
</file>
|
|
61
61
|
<file path="/builds/dti/design-system/sankhyacore/test/http/SkwHttpProvider.ts.spec.ts">
|
|
62
|
-
<testCase name="HttpProvider Metodo POST" duration="
|
|
62
|
+
<testCase name="HttpProvider Metodo POST" duration="80"/>
|
|
63
63
|
</file>
|
|
64
64
|
<file path="/builds/dti/design-system/sankhyacore/test/util/CriteriaParameter.spec.ts">
|
|
65
|
-
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the constructor" duration="
|
|
65
|
+
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the constructor" duration="1"/>
|
|
66
66
|
<testCase name="StringUtils it should return the correct values of "value" and "type" through the getters methods initial setted by the setters methods" duration="1"/>
|
|
67
|
-
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="
|
|
67
|
+
<testCase name="StringUtils it should return the correct JSON/Object value through the buildParam method" duration="1"/>
|
|
68
68
|
</file>
|
|
69
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/
|
|
70
|
-
<testCase name="
|
|
71
|
-
<testCase name="
|
|
72
|
-
<testCase name="
|
|
73
|
-
<testCase name="
|
|
74
|
-
<testCase name="
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<testCase name="
|
|
78
|
-
<testCase name="
|
|
79
|
-
<testCase name="StringUtils valor null" duration="0"/>
|
|
80
|
-
<testCase name="StringUtils valor undefined" duration="0"/>
|
|
81
|
-
<testCase name="StringUtils valor 0" duration="0"/>
|
|
82
|
-
<testCase name="StringUtils com valor" duration="1"/>
|
|
83
|
-
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="5"/>
|
|
84
|
-
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="2"/>
|
|
85
|
-
<testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
|
|
69
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/OverflowWatcher.spec.ts">
|
|
70
|
+
<testCase name="OverflowWatcher should initialize with provided parameters" duration="92"/>
|
|
71
|
+
<testCase name="OverflowWatcher should disconect ResizeObserver when destroy is called" duration="2"/>
|
|
72
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate" duration="422"/>
|
|
73
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan" duration="83"/>
|
|
74
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan when notOverFlow is empty" duration="108"/>
|
|
75
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with childSpan considering overflowed elements" duration="10"/>
|
|
76
|
+
<testCase name="OverflowWatcher Should call callback on forceUpdate with empty list" duration="5"/>
|
|
77
|
+
<testCase name="OverflowWatcher should ignore elements that can not overflow" duration="13"/>
|
|
78
|
+
<testCase name="OverflowWatcher Should not call callback on forceUpdate" duration="1"/>
|
|
86
79
|
</file>
|
|
87
80
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ColumnFilterManager.spec.ts">
|
|
88
|
-
<testCase name="ColumnFilterManager getColumnFilters should return an empty map if filters are undefined or empty" duration="
|
|
89
|
-
<testCase name="ColumnFilterManager getColumnFilters should return a map of filters matching the pattern and not the provided fieldName" duration="
|
|
81
|
+
<testCase name="ColumnFilterManager getColumnFilters should return an empty map if filters are undefined or empty" duration="85"/>
|
|
82
|
+
<testCase name="ColumnFilterManager getColumnFilters should return a map of filters matching the pattern and not the provided fieldName" duration="2"/>
|
|
90
83
|
<testCase name="ColumnFilterManager getFilterFunction should return undefined if no filters are provided" duration="1"/>
|
|
91
84
|
<testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records based on filters" duration="2"/>
|
|
92
85
|
<testCase name="ColumnFilterManager getFilterFunction should return a function that evaluates records and return false" duration="1"/>
|
|
93
|
-
<testCase name="ColumnFilterManager compileDistinct should return an array of distinct field values formatted correctly" duration="
|
|
94
|
-
<testCase name="ColumnFilterManager compileDistinct should filter records if a load request is present" duration="
|
|
86
|
+
<testCase name="ColumnFilterManager compileDistinct should return an array of distinct field values formatted correctly" duration="2"/>
|
|
87
|
+
<testCase name="ColumnFilterManager compileDistinct should filter records if a load request is present" duration="1"/>
|
|
88
|
+
</file>
|
|
89
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/NumberUtils.spec.ts">
|
|
90
|
+
<testCase name="StringUtils stringToNumber" duration="194"/>
|
|
91
|
+
<testCase name="StringUtils format" duration="794"/>
|
|
92
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="1"/>
|
|
93
|
+
<testCase name="StringUtils format without formatnumber parameter" duration="2"/>
|
|
94
|
+
<testCase name="StringUtils format round number" duration="1"/>
|
|
95
95
|
</file>
|
|
96
96
|
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/utils/dataUnitLoaderUtils.spec.ts">
|
|
97
97
|
<testCase name="Utility Functions applyFilter should return the original records if no filters are provided" duration="7"/>
|
|
98
|
-
<testCase name="Utility Functions applyFilter should filter records based on provided filters" duration="
|
|
98
|
+
<testCase name="Utility Functions applyFilter should filter records based on provided filters" duration="1"/>
|
|
99
99
|
<testCase name="Utility Functions buildPaginationInfo function should return correct pagination info with default values" duration="1"/>
|
|
100
|
-
<testCase name="Utility Functions buildPaginationInfo function should redosLenth as same size as recordsPerPage" duration="
|
|
100
|
+
<testCase name="Utility Functions buildPaginationInfo function should redosLenth as same size as recordsPerPage" duration="0"/>
|
|
101
101
|
<testCase name="Utility Functions buildPaginationInfo function should handle case when totalRecordsLength and offset 0" duration="1"/>
|
|
102
102
|
<testCase name="Utility Functions buildPaginationInfo function should handle case when currentPageLength is less than totalRecordsLength and lastPage" duration="1"/>
|
|
103
103
|
<testCase name="Utility Functions applySorting function should return the original records if no sorting is provided" duration="1"/>
|
|
104
104
|
<testCase name="Utility Functions applySorting function should sort records based on provided sorting criteria" duration="1"/>
|
|
105
105
|
</file>
|
|
106
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/
|
|
107
|
-
<testCase name="
|
|
108
|
-
<testCase name="
|
|
109
|
-
<testCase name="
|
|
110
|
-
<testCase name="
|
|
111
|
-
<testCase name="
|
|
112
|
-
<testCase name="
|
|
113
|
-
<testCase name="
|
|
114
|
-
<testCase name="
|
|
115
|
-
<testCase name="
|
|
106
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/StringUtils.spec.ts">
|
|
107
|
+
<testCase name="StringUtils valor vazio" duration="3"/>
|
|
108
|
+
<testCase name="StringUtils valor em branco" duration="1"/>
|
|
109
|
+
<testCase name="StringUtils valor null" duration="1"/>
|
|
110
|
+
<testCase name="StringUtils valor undefined" duration="1"/>
|
|
111
|
+
<testCase name="StringUtils valor 0" duration="0"/>
|
|
112
|
+
<testCase name="StringUtils com valor" duration="0"/>
|
|
113
|
+
<testCase name="StringUtils substitui vogais com acento por vogais sem acento" duration="2"/>
|
|
114
|
+
<testCase name="StringUtils should return the original value when called with an object without a toString method" duration="2"/>
|
|
115
|
+
<testCase name="StringUtils should return the original value when called with undefined" duration="1"/>
|
|
116
116
|
</file>
|
|
117
117
|
<file path="/builds/dti/design-system/sankhyacore/test/util/TimeFormatter.spec.ts">
|
|
118
|
-
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="
|
|
118
|
+
<testCase name="TimeFormatter Case: input string unformated with showSeconds" duration="2"/>
|
|
119
119
|
<testCase name="TimeFormatter Case: input string unformated without showSeconds" duration="1"/>
|
|
120
|
-
<testCase name="TimeFormatter Case: validateTime" duration="
|
|
120
|
+
<testCase name="TimeFormatter Case: validateTime" duration="77"/>
|
|
121
121
|
</file>
|
|
122
122
|
<file path="/builds/dti/design-system/sankhyacore/src/dataunit/state/slice/test/RecordsSlice.spec.ts">
|
|
123
|
-
<testCase name="RecordsSlice should return newlines at the end" duration="
|
|
123
|
+
<testCase name="RecordsSlice should return newlines at the end" duration="2"/>
|
|
124
|
+
</file>
|
|
125
|
+
<file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
|
|
126
|
+
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="5"/>
|
|
127
|
+
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="0"/>
|
|
128
|
+
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="0"/>
|
|
129
|
+
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
130
|
+
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
|
|
131
|
+
<testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="0"/>
|
|
124
132
|
</file>
|
|
125
133
|
<file path="/builds/dti/design-system/sankhyacore/src/dataunit/test/DataUnit.spec.ts">
|
|
126
134
|
<testCase name="DataUnit should return false when not waiting to reload" duration="3"/>
|
|
127
135
|
<testCase name="DataUnit should set waitingToReload to true" duration="1"/>
|
|
128
136
|
<testCase name="DataUnit should set waitingToReload to false" duration="0"/>
|
|
129
|
-
<testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="
|
|
130
|
-
</file>
|
|
131
|
-
<file path="/builds/dti/design-system/sankhyacore/test/util/DataUnitStorage.spec.ts">
|
|
132
|
-
<testCase name="DataUnitStorage put should store a DataUnit instance in the DataUnitStorage" duration="9"/>
|
|
133
|
-
<testCase name="DataUnitStorage get should return the stored DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
134
|
-
<testCase name="DataUnitStorage get should return undefined if the DataUnit instance is not found in the DataUnitStorage" duration="1"/>
|
|
135
|
-
<testCase name="DataUnitStorage remove should remove the specified DataUnit instance from the DataUnitStorage" duration="1"/>
|
|
136
|
-
<testCase name="DataUnitStorage remove should remove the DataUnit instance with the specified name from the DataUnitStorage" duration="1"/>
|
|
137
|
-
<testCase name="DataUnitStorage remove should not remove any DataUnit instance if the specified DataUnit instance or name is not found in the DataUnitStorage" duration="1"/>
|
|
137
|
+
<testCase name="DataUnit should dispatch SAVING_CANCELED action with correct fields and recordId" duration="1"/>
|
|
138
138
|
</file>
|
|
139
139
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementIDUtils.spec.ts">
|
|
140
|
-
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="
|
|
141
|
-
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="
|
|
142
|
-
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
143
|
-
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="
|
|
140
|
+
<testCase name="addIDInfo 1 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="9"/>
|
|
141
|
+
<testCase name="addIDInfo 2 - should add data-element-id with valid id "brComSankhyaFinCadMovimentacaofinanceira_snkApplication"" duration="2"/>
|
|
142
|
+
<testCase name="addIDInfo 3 - should add data-element-id with valid id "movFinanceira_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
143
|
+
<testCase name="addIDInfo 4 - should add data-element-id with valid id "meuID2_snkApplication"" duration="1"/>
|
|
144
144
|
<testCase name="addIDInfo 5 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="1"/>
|
|
145
145
|
<testCase name="addIDInfo 6 - should add data-element-id with valid id "movFinanceira_snkApplication"" duration="1"/>
|
|
146
146
|
<testCase name="addIDInfo 7 - should add data-element-id with valid id "componenteNameTest_snkApplication"" duration="1"/>
|
|
147
147
|
<testCase name="addIDInfo 8 - should add data-element-id with valid id "componentLabel_snkApplication"" duration="1"/>
|
|
148
|
-
<testCase name="addIDInfo 9 - should add data-element-id with valid id "dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
149
|
-
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="
|
|
148
|
+
<testCase name="addIDInfo 9 - should add data-element-id with valid id "dataunitFinanceiro_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="2"/>
|
|
149
|
+
<testCase name="addIDInfo 10 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_br.com.sankhya.fin.cad.movimentacaoFinanceira"" duration="1"/>
|
|
150
150
|
<testCase name="addIDInfo 11 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="2"/>
|
|
151
151
|
<testCase name="addIDInfo 12 - should add data-element-id with valid id "dataunitFinanceiro_movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
152
152
|
<testCase name="addIDInfo 13 - should add data-element-id with valid id "dataunitFinanceiro_meuIDTeste_movimentacaoFinanceira"" duration="2"/>
|
|
153
|
-
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="
|
|
154
|
-
<testCase name="addIDInfo 15 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="
|
|
155
|
-
<testCase name="addIDInfo 16 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="
|
|
153
|
+
<testCase name="addIDInfo 14 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_movimentacaoFinanceira"" duration="1"/>
|
|
154
|
+
<testCase name="addIDInfo 15 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="0"/>
|
|
155
|
+
<testCase name="addIDInfo 16 - should add data-element-id with valid id "dataunitFinanceiro_meuIdTeste_snkApplication"" duration="1"/>
|
|
156
156
|
<testCase name="addIDInfo 17 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
157
157
|
<testCase name="addIDInfo 18 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
158
158
|
<testCase name="addIDInfo 19 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
159
|
-
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="
|
|
159
|
+
<testCase name="addIDInfo 20 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="0"/>
|
|
160
160
|
<testCase name="addIDInfo 21 - should add data-element-id with valid id "movFinanceira_movimentacaoFinanceira"" duration="1"/>
|
|
161
|
-
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="
|
|
161
|
+
<testCase name="addIDInfo 22 - should add data-element-id with valid id "bancoObrigatorio_movimentacaoFinanceira"" duration="1"/>
|
|
162
162
|
</file>
|
|
163
163
|
<file path="/builds/dti/design-system/sankhyacore/test/util/ElementUtils.spec.ts">
|
|
164
|
-
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="
|
|
165
|
-
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="
|
|
166
|
-
<testCase name="calcMarginSize should threat values defined as zero" duration="
|
|
164
|
+
<testCase name="calcMarginSize should calculate correctly the size of horizontal margin" duration="13"/>
|
|
165
|
+
<testCase name="calcMarginSize should calculate correctly the size of vertical margin" duration="1"/>
|
|
166
|
+
<testCase name="calcMarginSize should threat values defined as zero" duration="3"/>
|
|
167
167
|
</file>
|
|
168
168
|
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/formatting/PrettyFormatter.spec.ts">
|
|
169
|
-
<testCase name="getFormattedValue should return empty string when value is null" duration="
|
|
169
|
+
<testCase name="getFormattedValue should return empty string when value is null" duration="5"/>
|
|
170
170
|
<testCase name="getFormattedValue should return empty string when value is not an array" duration="1"/>
|
|
171
|
-
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="
|
|
172
|
-
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="
|
|
173
|
-
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="
|
|
174
|
-
<testCase name="getFormattedValue should return empty string for undefined file" duration="
|
|
175
|
-
<testCase name="getFormattedValue should handle OBJECT type with value field" duration="
|
|
176
|
-
<testCase name="getFormattedValue should return empty string when value is undefined" duration="
|
|
171
|
+
<testCase name="getFormattedValue should return empty string when value is an empty array" duration="0"/>
|
|
172
|
+
<testCase name="getFormattedValue should return file name when value is an array with one file object" duration="1"/>
|
|
173
|
+
<testCase name="getFormattedValue should return file count when value is an array with multiple file objects" duration="0"/>
|
|
174
|
+
<testCase name="getFormattedValue should return empty string for undefined file" duration="1"/>
|
|
175
|
+
<testCase name="getFormattedValue should handle OBJECT type with value field" duration="0"/>
|
|
176
|
+
<testCase name="getFormattedValue should return empty string when value is undefined" duration="0"/>
|
|
177
177
|
<testCase name="getFormattedValue should return value as string when value is not an object" duration="0"/>
|
|
178
178
|
<testCase name="getFormattedValue should return value.toString() when value is an object without value property" duration="0"/>
|
|
179
|
-
<testCase name="getFormattedValue should handle BOOLEAN type" duration="
|
|
180
|
-
<testCase name="getFormattedValue should format numbers correctly" duration="
|
|
181
|
-
<testCase name="getFormattedValue should format dates correctly" duration="
|
|
179
|
+
<testCase name="getFormattedValue should handle BOOLEAN type" duration="0"/>
|
|
180
|
+
<testCase name="getFormattedValue should format numbers correctly" duration="15"/>
|
|
181
|
+
<testCase name="getFormattedValue should format dates correctly" duration="26"/>
|
|
182
182
|
<testCase name="getFormattedValue should format times correctly" duration="1"/>
|
|
183
183
|
<testCase name="getFormattedValue should format datetime correctly" duration="1"/>
|
|
184
|
-
<testCase name="getFormattedValue should call toString with correct parameters" duration="
|
|
185
|
-
<testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="
|
|
184
|
+
<testCase name="getFormattedValue should call toString with correct parameters" duration="0"/>
|
|
185
|
+
<testCase name="getFormattedValue should handle undefined descriptor gracefully" duration="1"/>
|
|
186
186
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and matching option" duration="1"/>
|
|
187
187
|
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and no matching option" duration="0"/>
|
|
188
188
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and value as object" duration="0"/>
|
|
189
189
|
<testCase name="getFormattedValue should return empty string with OPTIONSELECTOR and value as null" duration="1"/>
|
|
190
190
|
<testCase name="getFormattedValue should format value correctly with OPTIONSELECTOR and options as JSON string" duration="0"/>
|
|
191
191
|
<testCase name="getFormattedValue should return value with OPTIONSELECTOR and options as empty array" duration="1"/>
|
|
192
|
-
<testCase name="getFormattedValue should format masked values correctly" duration="
|
|
192
|
+
<testCase name="getFormattedValue should format masked values correctly" duration="1"/>
|
|
193
193
|
</file>
|
|
194
194
|
<file path="/builds/dti/design-system/sankhyacore/test/dataunit/loader/dataUnitInMemoryLoader.spec.ts">
|
|
195
|
-
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is true" duration="
|
|
196
|
-
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is undefined" duration="
|
|
195
|
+
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is true" duration="12"/>
|
|
196
|
+
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when auto load is undefined" duration="1"/>
|
|
197
197
|
<testCase name="DataUnitInMemoryLoader - loadData should not be called load data when auto load is false" duration="1"/>
|
|
198
198
|
<testCase name="DataUnitInMemoryLoader - loadData should be called load data when config is undefined" duration="1"/>
|
|
199
199
|
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if descriptor is undefined" duration="1"/>
|
|
200
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if dataType is TEXT" duration="
|
|
201
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to boolean when dataType is BOOLEAN" duration="
|
|
200
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if dataType is TEXT" duration="0"/>
|
|
201
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to boolean when dataType is BOOLEAN" duration="1"/>
|
|
202
202
|
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to number when dataType is NUMBER" duration="1"/>
|
|
203
203
|
<testCase name="DataUnitInMemoryLoader - getConvertedValue should parse JSON when dataType is OBJECT" duration="1"/>
|
|
204
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is ISO" duration="
|
|
204
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is ISO" duration="2"/>
|
|
205
205
|
<testCase name="DataUnitInMemoryLoader - getConvertedValue should convert to date when dataType is DATE and format is not ISO" duration="1"/>
|
|
206
|
-
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if no dataType matches" duration="
|
|
207
|
-
<testCase name="DataUnitInMemoryLoader - removeLoader should resolve with the provided record IDs" duration="
|
|
206
|
+
<testCase name="DataUnitInMemoryLoader - getConvertedValue should return the original string if no dataType matches" duration="0"/>
|
|
207
|
+
<testCase name="DataUnitInMemoryLoader - removeLoader should resolve with the provided record IDs" duration="2"/>
|
|
208
208
|
<testCase name="DataUnitInMemoryLoader - removeLoader should handle empty record ID array" duration="2"/>
|
|
209
209
|
<testCase name="DataUnitInMemoryLoader - removeLoader should resolve the promise" duration="1"/>
|
|
210
|
-
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should build initial records and convert field values based on metadata" duration="
|
|
211
|
-
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should generate unique IDs for records without "__record__id__"" duration="
|
|
210
|
+
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should build initial records and convert field values based on metadata" duration="3"/>
|
|
211
|
+
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should generate unique IDs for records without "__record__id__"" duration="4"/>
|
|
212
212
|
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should leave fields untouched if no matching metadata exists" duration="2"/>
|
|
213
|
-
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should skip conversion for non-string field values" duration="
|
|
213
|
+
<testCase name="DataUnitInMemoryLoader - buildInitialRecords (indiretamente via set records) should skip conversion for non-string field values" duration="2"/>
|
|
214
214
|
</file>
|
|
215
215
|
</unitTest>
|
|
@@ -70,8 +70,8 @@ export class DataUnitInMemoryLoader {
|
|
|
70
70
|
|
|
71
71
|
if (!this._dataUnit) return;
|
|
72
72
|
|
|
73
|
-
//Isso força o refresh internamente no datunit
|
|
74
|
-
this._dataUnit.
|
|
73
|
+
//Isso força o refresh internamente no datunit mantendo a seleção anterior
|
|
74
|
+
this._dataUnit.loadDataWithParams({keepSelection: true});
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
public static getConvertedValue(descriptor: FieldDescriptor, strValue: string, dateFormat?: RECORD_DATE_FORMAT) {
|