@reltio/components 1.4.2062 → 1.4.2063
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.
- package/ProfileMatchCard/ProfileMatchCard.test.js +2 -2
- package/SimpleMatchRules/SimpleMatchRules.js +1 -1
- package/SimpleMatchRules/SimpleMatchRules.test.js +1 -1
- package/cjs/ProfileMatchCard/ProfileMatchCard.test.js +2 -2
- package/cjs/SimpleMatchRules/SimpleMatchRules.js +1 -1
- package/cjs/SimpleMatchRules/SimpleMatchRules.test.js +1 -1
- package/package.json +1 -1
|
@@ -109,7 +109,7 @@ describe('ProfileMatchCard tests', function () {
|
|
|
109
109
|
return [4 /*yield*/, user.click(screen.getAllByTestId('arrow-expand-button')[1])];
|
|
110
110
|
case 2:
|
|
111
111
|
_a.sent();
|
|
112
|
-
expect(screen.getByTestId('match-rule-info')).toHaveTextContent('
|
|
112
|
+
expect(screen.getByTestId('match-rule-info')).toHaveTextContent('• HCP Same Country Code, SpecStatus');
|
|
113
113
|
return [2 /*return*/];
|
|
114
114
|
}
|
|
115
115
|
});
|
|
@@ -141,7 +141,7 @@ describe('ProfileMatchCard tests', function () {
|
|
|
141
141
|
return [4 /*yield*/, user.click(screen.getAllByTestId('arrow-expand-button')[1])];
|
|
142
142
|
case 2:
|
|
143
143
|
_a.sent();
|
|
144
|
-
expect(screen.getByTestId('match-rule-info')).toHaveTextContent('
|
|
144
|
+
expect(screen.getByTestId('match-rule-info')).toHaveTextContent('• HCP Same Country Code, SpecStatus90%');
|
|
145
145
|
return [2 /*return*/];
|
|
146
146
|
}
|
|
147
147
|
});
|
|
@@ -19,7 +19,7 @@ export var SimpleMatchRules = function (_a) {
|
|
|
19
19
|
var relevancePercentage = formatRelevanceScore(matchRuleSummary);
|
|
20
20
|
return (React.createElement("div", { className: styles.matchRuleInfo, key: matchRule.uri, "data-reltio-id": "match-rule-info" },
|
|
21
21
|
React.createElement("div", { className: styles.matchRuleLabel },
|
|
22
|
-
|
|
22
|
+
"\u2022\u00A0",
|
|
23
23
|
matchRule.negativeRule && (React.createElement(NegativeRuleIcon, { className: styles.negativeRuleIcon })), "".concat(matchRule.label)),
|
|
24
24
|
relevancePercentage && (React.createElement(Tooltip, { title: i18n.text('Relevance score') },
|
|
25
25
|
React.createElement("div", { className: styles.relevanceScore }, relevancePercentage)))));
|
|
@@ -8,7 +8,7 @@ describe('SimpleMatchRules tests', function () {
|
|
|
8
8
|
{ uri: 'uri2', label: 'label2', negativeRule: {} }
|
|
9
9
|
];
|
|
10
10
|
render(React.createElement(SimpleMatchRules, { matchRules: matchRules }));
|
|
11
|
-
var ruleItems = screen.getAllByText(
|
|
11
|
+
var ruleItems = screen.getAllByText(/^•+/);
|
|
12
12
|
expect(ruleItems).toHaveLength(2);
|
|
13
13
|
expect(ruleItems[0]).toHaveTextContent(matchRules[0].label);
|
|
14
14
|
expect(ruleItems[0].querySelector('svg')).not.toBeInTheDocument();
|
|
@@ -114,7 +114,7 @@ describe('ProfileMatchCard tests', function () {
|
|
|
114
114
|
return [4 /*yield*/, user.click(react_2.screen.getAllByTestId('arrow-expand-button')[1])];
|
|
115
115
|
case 2:
|
|
116
116
|
_a.sent();
|
|
117
|
-
expect(react_2.screen.getByTestId('match-rule-info')).toHaveTextContent('
|
|
117
|
+
expect(react_2.screen.getByTestId('match-rule-info')).toHaveTextContent('• HCP Same Country Code, SpecStatus');
|
|
118
118
|
return [2 /*return*/];
|
|
119
119
|
}
|
|
120
120
|
});
|
|
@@ -146,7 +146,7 @@ describe('ProfileMatchCard tests', function () {
|
|
|
146
146
|
return [4 /*yield*/, user.click(react_2.screen.getAllByTestId('arrow-expand-button')[1])];
|
|
147
147
|
case 2:
|
|
148
148
|
_a.sent();
|
|
149
|
-
expect(react_2.screen.getByTestId('match-rule-info')).toHaveTextContent('
|
|
149
|
+
expect(react_2.screen.getByTestId('match-rule-info')).toHaveTextContent('• HCP Same Country Code, SpecStatus90%');
|
|
150
150
|
return [2 /*return*/];
|
|
151
151
|
}
|
|
152
152
|
});
|
|
@@ -25,7 +25,7 @@ var SimpleMatchRules = function (_a) {
|
|
|
25
25
|
var relevancePercentage = (0, mdm_sdk_1.formatRelevanceScore)(matchRuleSummary);
|
|
26
26
|
return (react_1.default.createElement("div", { className: styles.matchRuleInfo, key: matchRule.uri, "data-reltio-id": "match-rule-info" },
|
|
27
27
|
react_1.default.createElement("div", { className: styles.matchRuleLabel },
|
|
28
|
-
|
|
28
|
+
"\u2022\u00A0",
|
|
29
29
|
matchRule.negativeRule && (react_1.default.createElement(NegativeRuleIcon_1.default, { className: styles.negativeRuleIcon })), "".concat(matchRule.label)),
|
|
30
30
|
relevancePercentage && (react_1.default.createElement(Tooltip_1.default, { title: ui_i18n_1.default.text('Relevance score') },
|
|
31
31
|
react_1.default.createElement("div", { className: styles.relevanceScore }, relevancePercentage)))));
|
|
@@ -13,7 +13,7 @@ describe('SimpleMatchRules tests', function () {
|
|
|
13
13
|
{ uri: 'uri2', label: 'label2', negativeRule: {} }
|
|
14
14
|
];
|
|
15
15
|
(0, react_2.render)(react_1.default.createElement(SimpleMatchRules_1.SimpleMatchRules, { matchRules: matchRules }));
|
|
16
|
-
var ruleItems = react_2.screen.getAllByText(
|
|
16
|
+
var ruleItems = react_2.screen.getAllByText(/^•+/);
|
|
17
17
|
expect(ruleItems).toHaveLength(2);
|
|
18
18
|
expect(ruleItems[0]).toHaveTextContent(matchRules[0].label);
|
|
19
19
|
expect(ruleItems[0].querySelector('svg')).not.toBeInTheDocument();
|