Skip to content

Commit a4c4ee6

Browse files
committed
test(a11y): update langflow count names
1 parent 62f870f commit a4c4ee6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/frontend/src/components/core/appHeaderComponent/components/__tests__/langflow-counts.a11y.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,27 +47,27 @@ describe("LangflowCounts accessibility", () => {
4747

4848
it("should_expose_github_button_with_accessible_name", () => {
4949
expect(
50-
screen.getByRole("button", { name: /go to github repo/i }),
50+
screen.getByRole("button", { name: /github 1234/i }),
5151
).toBeInTheDocument();
5252
});
5353

5454
it("should_expose_discord_button_with_accessible_name", () => {
5555
expect(
56-
screen.getByRole("button", { name: /go to discord server/i }),
56+
screen.getByRole("button", { name: /discord 5678/i }),
5757
).toBeInTheDocument();
5858
});
5959

6060
it("should_hide_github_icon_from_assistive_technology", () => {
6161
const githubButton = screen.getByRole("button", {
62-
name: /go to github repo/i,
62+
name: /github 1234/i,
6363
});
6464
const svg = githubButton.querySelector("svg");
6565
expect(svg).toHaveAttribute("aria-hidden", "true");
6666
});
6767

6868
it("should_hide_discord_icon_from_assistive_technology", () => {
6969
const discordButton = screen.getByRole("button", {
70-
name: /go to discord server/i,
70+
name: /discord 5678/i,
7171
});
7272
const svg = discordButton.querySelector("svg");
7373
expect(svg).toHaveAttribute("aria-hidden", "true");

0 commit comments

Comments
 (0)