Skip to content

Commit 276d675

Browse files
Add labels to icons
1 parent 3db0f2b commit 276d675

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

extensions/ql-vscode/src/view/variant-analysis/VariantAnalysisRepositoriesStats.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const VariantAnalysisRepositoriesStats = ({
2828
return (
2929
<>
3030
0<HorizontalSpace size={2} />
31-
<ErrorIcon />
31+
<ErrorIcon label="Variant analysis failed" />
3232
</>
3333
);
3434
}
@@ -43,13 +43,13 @@ export const VariantAnalysisRepositoriesStats = ({
4343
{showError && (
4444
<>
4545
<HorizontalSpace size={2} />
46-
<ErrorIcon />
46+
<ErrorIcon label="Some analyses failed" />
4747
</>
4848
)}
4949
{showWarning && !showError && (
5050
<>
5151
<HorizontalSpace size={2} />
52-
<WarningIcon />
52+
<WarningIcon label="Some repositories were skipped" />
5353
</>
5454
)}
5555
{!showError &&

extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisStats.spec.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe(VariantAnalysisStats.name, () => {
5555

5656
expect(
5757
screen.getByRole("img", {
58-
name: "Warning",
58+
name: "Some repositories were skipped",
5959
}),
6060
).toBeInTheDocument();
6161
});
@@ -65,7 +65,7 @@ describe(VariantAnalysisStats.name, () => {
6565

6666
expect(
6767
screen.getByRole("img", {
68-
name: "Error",
68+
name: "Variant analysis failed",
6969
}),
7070
).toBeInTheDocument();
7171
});
@@ -89,7 +89,7 @@ describe(VariantAnalysisStats.name, () => {
8989

9090
expect(
9191
screen.getByRole("img", {
92-
name: "Error",
92+
name: "Some analyses failed",
9393
}),
9494
).toBeInTheDocument();
9595
});
@@ -103,7 +103,7 @@ describe(VariantAnalysisStats.name, () => {
103103

104104
expect(
105105
screen.getByRole("img", {
106-
name: "Error",
106+
name: "Some analyses failed",
107107
}),
108108
).toBeInTheDocument();
109109
});
@@ -117,12 +117,12 @@ describe(VariantAnalysisStats.name, () => {
117117

118118
expect(
119119
screen.getByRole("img", {
120-
name: "Error",
120+
name: "Some analyses failed",
121121
}),
122122
).toBeInTheDocument();
123123
expect(
124124
screen.queryByRole("img", {
125-
name: "Warning",
125+
name: "Some repositories were skipped",
126126
}),
127127
).not.toBeInTheDocument();
128128
});

0 commit comments

Comments
 (0)