mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 04:09:14 +00:00
test: implement comprehensive unit tests for components (#487)
This commit is contained in:
@@ -105,7 +105,7 @@ limitations under the License. -->
|
||||
) {
|
||||
const serviceId = (selectorStore.currentService && selectorStore.currentService.id) || "";
|
||||
if (!serviceId) {
|
||||
return ElMessage.error("No Service ID");
|
||||
return ElMessage.error("Service ID is required");
|
||||
}
|
||||
const res = await continousProfilingStore.setContinuousProfilingPolicy(serviceId, targets);
|
||||
if (res.errors) {
|
||||
|
@@ -174,6 +174,7 @@ export default class ListGraph {
|
||||
.style("display", "block")
|
||||
.style("left", `${offsetX + 30}px`)
|
||||
.style("top", `${offsetY + 40}px`);
|
||||
t.selectedNode?.classed("highlighted", false);
|
||||
t.selectedNode = d3.select(this);
|
||||
if (t.handleSelectSpan) {
|
||||
t.handleSelectSpan(d);
|
||||
|
@@ -315,6 +315,7 @@ export default class TraceMap {
|
||||
.style("display", "block")
|
||||
.style("left", `${offsetX + 30}px`)
|
||||
.style("top", `${offsetY + 40}px`);
|
||||
t.selectedNode?.classed("highlighted", false);
|
||||
t.selectedNode = d3.select(this.parentNode);
|
||||
if (t.handleSelectSpan) {
|
||||
t.handleSelectSpan(d);
|
||||
|
Reference in New Issue
Block a user