@shopware-ag/acceptance-test-suite 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +7 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -557,6 +557,8 @@ declare const getOrderTransactionId: (orderId: string, adminApiContext: AdminApi
|
|
|
557
557
|
declare const getMediaId: (fileName: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
558
558
|
declare function extractIdFromUrl(url: string): string | null;
|
|
559
559
|
|
|
560
|
+
declare const isSaaSInstance: (adminApiContext: AdminApiContext) => Promise<boolean>;
|
|
561
|
+
|
|
560
562
|
declare function createRandomImage(width?: number, height?: number): Image;
|
|
561
563
|
|
|
562
564
|
declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & FixtureTypes & {
|
|
@@ -595,4 +597,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
595
597
|
ValidateAccessibility: (pageName: string, assertViolations?: boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<void>;
|
|
596
598
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & HelperFixtureTypes & FixtureTypes>;
|
|
597
599
|
|
|
598
|
-
export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, test };
|
|
600
|
+
export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, test };
|
package/dist/index.d.ts
CHANGED
|
@@ -557,6 +557,8 @@ declare const getOrderTransactionId: (orderId: string, adminApiContext: AdminApi
|
|
|
557
557
|
declare const getMediaId: (fileName: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
558
558
|
declare function extractIdFromUrl(url: string): string | null;
|
|
559
559
|
|
|
560
|
+
declare const isSaaSInstance: (adminApiContext: AdminApiContext) => Promise<boolean>;
|
|
561
|
+
|
|
560
562
|
declare function createRandomImage(width?: number, height?: number): Image;
|
|
561
563
|
|
|
562
564
|
declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & FixtureTypes & {
|
|
@@ -595,4 +597,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
595
597
|
ValidateAccessibility: (pageName: string, assertViolations?: boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<void>;
|
|
596
598
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & HelperFixtureTypes & FixtureTypes>;
|
|
597
599
|
|
|
598
|
-
export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, test };
|
|
600
|
+
export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, test };
|
package/dist/index.mjs
CHANGED
|
@@ -647,7 +647,7 @@ const test$8 = test$c.extend({
|
|
|
647
647
|
});
|
|
648
648
|
expect(response.ok()).toBeTruthy();
|
|
649
649
|
await page.goto("#/login");
|
|
650
|
-
await page.getByLabel(
|
|
650
|
+
await page.getByLabel(/Username|Email address/).fill(adminUser.username);
|
|
651
651
|
await page.getByLabel("Password").fill(adminUser.password);
|
|
652
652
|
await page.getByRole("button", { name: "Log in" }).click();
|
|
653
653
|
await expect(page.locator("css=.sw-admin-menu__header-logo").first()).toBeVisible({
|
|
@@ -2438,6 +2438,11 @@ const test$1 = mergeTests(
|
|
|
2438
2438
|
ValidateAccessibility
|
|
2439
2439
|
);
|
|
2440
2440
|
|
|
2441
|
+
const isSaaSInstance = async (adminApiContext) => {
|
|
2442
|
+
const instanceFeatures = await adminApiContext.get("./instance/features");
|
|
2443
|
+
return instanceFeatures.ok();
|
|
2444
|
+
};
|
|
2445
|
+
|
|
2441
2446
|
const test = mergeTests(
|
|
2442
2447
|
test$6,
|
|
2443
2448
|
test$a,
|
|
@@ -2451,4 +2456,4 @@ const test = mergeTests(
|
|
|
2451
2456
|
test$1
|
|
2452
2457
|
);
|
|
2453
2458
|
|
|
2454
|
-
export { AdminPageObjects, StorefrontPageObjects, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, test };
|
|
2459
|
+
export { AdminPageObjects, StorefrontPageObjects, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, test };
|