
* playwright install * Configrations * assertions * basic tests for apps installations * tests for product feed * Adjust PF assertions to use test-id * Taxes smoke test * moved files around * Add smoke for Klaviyo * More taxes tests * remove workflow * add example * extract separate test for pf * Improve PF test * cr fixes
20 lines
647 B
TypeScript
20 lines
647 B
TypeScript
import { configuration } from "./configuration";
|
|
|
|
export const appUrls = (appUrl: string) => ({
|
|
manifest: new URL("/api/manifest", appUrl).href,
|
|
register: new URL("/api/register", appUrl).href,
|
|
});
|
|
|
|
const saleorUrls = (dashboardUrl: string) => ({
|
|
dashboard: {
|
|
homepage: new URL("/dashboard", dashboardUrl).href,
|
|
apps: new URL("/dashboard/apps", dashboardUrl).href,
|
|
appInstallPage: (appManifest: string) =>
|
|
new URL(`/dashboard/apps/install?manifestUrl=${appManifest}`, dashboardUrl).href,
|
|
},
|
|
api: new URL("/graphql/", dashboardUrl).href,
|
|
});
|
|
|
|
export const routing = {
|
|
saleor: saleorUrls(configuration.instanceUrl),
|
|
};
|