saleor-apps-redis_apl/packages/e2e/setup/routing.ts
Lukasz Ostrowski 7c98e384fd
E2E tests (#668)
* 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
2023-06-28 17:08:00 +02:00

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),
};