Skip to content

Commit e5dbe4c

Browse files
committed
In AppsTab.test.tsx, fetch button by aria-label
1 parent 211ad3c commit e5dbe4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/components/__tests__/AppsTab.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ describe("AppsTab", () => {
161161
expect(screen.getByTestId("app-renderer")).toBeInTheDocument();
162162

163163
// Close the app
164-
const closeButton = screen.getByRole("button", { name: "" }); // X button has no text
164+
const closeButton = screen.getByRole("button", { name: /close app/i });
165165
fireEvent.click(closeButton);
166166

167167
// AppRenderer should be removed

0 commit comments

Comments
 (0)