mirror of
https://github.com/getpaseo/paseo.git
synced 2026-08-14 12:23:16 +00:00
Replace the modal Add Provider flow with an inline Add provider section below the configured providers list. Makes new providers discoverable without opening a modal. - Remove add-provider-modal component - Add provider-catalog-list component with search + Add button - Remove duplicate ACP catalog entries for built-in providers - Add spacing between the two sections
30 lines
936 B
TypeScript
30 lines
936 B
TypeScript
import { test } from "./fixtures";
|
|
import { gotoAppShell, openSettings } from "./helpers/app";
|
|
import { getServerId } from "./helpers/server-id";
|
|
import {
|
|
expectProviderInstalledInSettings,
|
|
installAcpCatalogProvider,
|
|
openAddProviderArea,
|
|
openSettingsHost,
|
|
openSettingsHostSection,
|
|
} from "./helpers/settings";
|
|
|
|
const ACP_PROVIDER = {
|
|
id: "hermes",
|
|
name: "Hermes",
|
|
};
|
|
|
|
test.describe("ACP provider catalog", () => {
|
|
test("adds a catalog provider from settings", async ({ page }) => {
|
|
await gotoAppShell(page);
|
|
await openSettings(page);
|
|
await openSettingsHost(page, getServerId());
|
|
// Providers moved to their own host section; add-provider lives there now.
|
|
await openSettingsHostSection(page, getServerId(), "providers");
|
|
await openAddProviderArea(page);
|
|
|
|
await installAcpCatalogProvider(page, ACP_PROVIDER.name);
|
|
await expectProviderInstalledInSettings(page, ACP_PROVIDER.name);
|
|
});
|
|
});
|