@shopware-ag/acceptance-test-suite 11.9.2 → 11.9.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -7
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -556,7 +556,7 @@ const isSaaSInstance = async (adminApiContext) => {
556
556
  const isThemeCompiled = async (context, storefrontUrl) => {
557
557
  const response = await context.get(storefrontUrl);
558
558
  const body = (await response.body()).toString();
559
- const matches = body.match(/.*"(https:\/\/.*all\.css[^"]*)".*/);
559
+ const matches = body.match(/.*"(https?:\/\/.*all\.css[^"]*)".*/);
560
560
  if (matches && matches?.length > 1) {
561
561
  const allCssUrl = matches[1];
562
562
  const allCssResponse = await context.get(allCssUrl);
@@ -602,7 +602,7 @@ const test$b = test$f.extend({
602
602
  });
603
603
  await expect(page.url()).toContain("login");
604
604
  await page.getByLabel(/Username|Email address/).fill(adminUser.username);
605
- await page.getByLabel("Password").fill(adminUser.password);
605
+ await page.getByLabel("Password", { exact: true }).fill(adminUser.password);
606
606
  const config = await (await AdminApiContext.get("./_info/config")).json();
607
607
  const jsLoadingPromises = [];
608
608
  for (const i in config.bundles) {
@@ -639,16 +639,13 @@ const test$b = test$f.extend({
639
639
  baseURL: url
640
640
  });
641
641
  const page = await context.newPage();
642
- const isSaasInstance = await isSaaSInstance(AdminApiContext);
643
642
  if (!await isThemeCompiled(AdminApiContext, DefaultSalesChannel.url)) {
644
643
  test$f.slow();
645
644
  await AdminApiContext.post(
646
645
  `./_action/theme/${SalesChannelBaseConfig.defaultThemeId}/assign/${salesChannel.id}`
647
646
  );
648
- if (isSaasInstance) {
649
- while (!await isThemeCompiled(AdminApiContext, DefaultSalesChannel.url)) {
650
- await page.waitForTimeout(4e3);
651
- }
647
+ while (!await isThemeCompiled(AdminApiContext, DefaultSalesChannel.url)) {
648
+ await page.waitForTimeout(4e3);
652
649
  }
653
650
  }
654
651
  await page.goto("./", { waitUntil: "load" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.9.2",
3
+ "version": "11.9.3",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",