@shopware-ag/acceptance-test-suite 2.3.7 → 2.3.8

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 CHANGED
@@ -996,7 +996,7 @@ interface DataFixtureTypes {
996
996
  interface FixtureTypes extends ApiContextTypes, PageContextTypes, ActorFixtureTypes, TestDataFixtureTypes, HelperFixtureTypes, DefaultSalesChannelTypes, StorefrontPageTypes, AdministrationPageTypes, DataFixtureTypes {
997
997
  }
998
998
 
999
- type Language = components['schemas']['Currency'] & {
999
+ type Language = components['schemas']['Language'] & {
1000
1000
  id: string;
1001
1001
  translationCode: components['schemas']['Locale'] & {
1002
1002
  id: string;
package/dist/index.d.ts CHANGED
@@ -996,7 +996,7 @@ interface DataFixtureTypes {
996
996
  interface FixtureTypes extends ApiContextTypes, PageContextTypes, ActorFixtureTypes, TestDataFixtureTypes, HelperFixtureTypes, DefaultSalesChannelTypes, StorefrontPageTypes, AdministrationPageTypes, DataFixtureTypes {
997
997
  }
998
998
 
999
- type Language = components['schemas']['Currency'] & {
999
+ type Language = components['schemas']['Language'] & {
1000
1000
  id: string;
1001
1001
  translationCode: components['schemas']['Locale'] & {
1002
1002
  id: string;
package/dist/index.mjs CHANGED
@@ -631,6 +631,11 @@ async function mockApiCalls(page) {
631
631
  contentType: "application/json",
632
632
  body: process.env.SBP_BOOKABLE_PLANS_JSON ?? "{}"
633
633
  }));
634
+ await page.route("**/api/sbp/nps/active-trigger", (route) => route.fulfill({
635
+ status: 200,
636
+ contentType: "application/json",
637
+ body: '{"prompt":false,"trigger":["gone-live"]}'
638
+ }));
634
639
  }
635
640
 
636
641
  const isSaaSInstance = async (adminApiContext) => {
@@ -686,16 +691,14 @@ const test$9 = test$d.extend({
686
691
  });
687
692
  await page.getByLabel(/Username|Email address/).fill(adminUser.username);
688
693
  await page.getByLabel("Password").fill(adminUser.password);
694
+ const configResponsePromise = page.waitForResponse("**/_info/config");
689
695
  await page.getByRole("button", { name: "Log in" }).click();
690
- await expect(page.locator("css=.sw-admin-menu__header-logo").first()).toBeVisible({
691
- timeout: 2e4
692
- });
693
- await expect(page.locator(".sw-skeleton")).toHaveCount(0, {
694
- timeout: 1e4
695
- });
696
- await expect(page.locator(".sw-loader")).toHaveCount(0, {
697
- timeout: 1e4
698
- });
696
+ const config = await (await configResponsePromise).json();
697
+ const keys = Object.keys(config.bundles);
698
+ if (keys.length > 0) {
699
+ const last = config.bundles[keys[keys.length - 1]];
700
+ await Promise.all(last.js.map((url) => page.waitForResponse(url)));
701
+ }
699
702
  await use(page);
700
703
  await page.close();
701
704
  await context.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",