test(ui): give the skills panel's first render 5s to show the catalog (#51509)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Kerry Lu 2026-11-12 17:22:46 -08:00 • committed by GitHub
parent 85afa9a1ca
commit 27d76badcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,7 +261,7 @@ const openEdit = async () => {
it.each(["current", "retained"])("refreshes published counts after a %s download", async (kind) => {
URL.createObjectURL = vi.fn(() => "blob:skill-download");
renderWithProviders(<ClaudeCodePluginsPanel accessToken="admin-token" userRole="Admin" />);
expect(await screen.findByRole("cell", { name: "0" })).toBeInTheDocument();
expect(await screen.findByRole("cell", { name: "0" }, { timeout: 5000 })).toBeInTheDocument();
expect(fetchMock).toHaveBeenCalledOnce();
fireEvent.click(screen.getByText(published.name));
await screen.findByRole("button", { name: "Edit Skill" });