@shopware-ag/acceptance-test-suite 12.18.0 → 12.18.1
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 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +3 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6699,8 +6699,9 @@ interface Options {
|
|
|
6699
6699
|
}
|
|
6700
6700
|
declare function setViewport(page: Page, options?: Options): Promise<void>;
|
|
6701
6701
|
/**
|
|
6702
|
-
* Forces the admin navigation sidebar back into its expanded state for the given page.
|
|
6703
|
-
*
|
|
6702
|
+
* Forces the admin navigation sidebar back into its expanded state for the given page. Calls the
|
|
6703
|
+
* app's own store action rather than writing localStorage directly, so this doesn't depend on
|
|
6704
|
+
* (and can't drift out of sync with) whichever key the app currently persists that flag under.
|
|
6704
6705
|
*
|
|
6705
6706
|
* @param page - Playwright page object
|
|
6706
6707
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -6699,8 +6699,9 @@ interface Options {
|
|
|
6699
6699
|
}
|
|
6700
6700
|
declare function setViewport(page: Page, options?: Options): Promise<void>;
|
|
6701
6701
|
/**
|
|
6702
|
-
* Forces the admin navigation sidebar back into its expanded state for the given page.
|
|
6703
|
-
*
|
|
6702
|
+
* Forces the admin navigation sidebar back into its expanded state for the given page. Calls the
|
|
6703
|
+
* app's own store action rather than writing localStorage directly, so this doesn't depend on
|
|
6704
|
+
* (and can't drift out of sync with) whichever key the app currently persists that flag under.
|
|
6704
6705
|
*
|
|
6705
6706
|
* @param page - Playwright page object
|
|
6706
6707
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -13329,12 +13329,10 @@ async function setViewport(page, options = {}) {
|
|
|
13329
13329
|
console.warn(`[Success] Viewport size: width=${contentWidth}, height=${totalHeight}`);
|
|
13330
13330
|
return;
|
|
13331
13331
|
}
|
|
13332
|
-
const ADMIN_MENU_EXPANDED_STORAGE_KEY = "sw-admin-menu-expanded";
|
|
13333
13332
|
async function expandAdminMenu(page) {
|
|
13334
|
-
await page.evaluate((
|
|
13335
|
-
|
|
13336
|
-
}
|
|
13337
|
-
await page.reload();
|
|
13333
|
+
await page.evaluate(() => {
|
|
13334
|
+
window.Shopware.Store.get("adminMenu").expandSidebar();
|
|
13335
|
+
});
|
|
13338
13336
|
}
|
|
13339
13337
|
async function assertScreenshot(page, filename, locator) {
|
|
13340
13338
|
if (locator) {
|