From d17f3c58a99248764fc191429ba7a3c1bbe3acd8 Mon Sep 17 00:00:00 2001 From: Sanyi Date: Sun, 28 Jul 2024 11:45:10 +0200 Subject: [PATCH] EMA-150 auto test memory optimizing --- dev/testv2/cypress.config.js | 1 + dev/testv2/tools/docker/Dockerfile-mage-node | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/dev/testv2/cypress.config.js b/dev/testv2/cypress.config.js index 5a1d7f3..ff85618 100644 --- a/dev/testv2/cypress.config.js +++ b/dev/testv2/cypress.config.js @@ -8,6 +8,7 @@ module.exports = defineConfig({ pageLoadTimeout: 120000, experimentalMemoryManagement: true, experimentalModifyObstructiveThirdPartyCode: true, + modifyObstructiveCode: true, numTestsKeptInMemory: 0, blockHosts: ['*snippet.url.com', '*scarabresearch.com'], env: { diff --git a/dev/testv2/tools/docker/Dockerfile-mage-node b/dev/testv2/tools/docker/Dockerfile-mage-node index 5fffd93..75eaf66 100644 --- a/dev/testv2/tools/docker/Dockerfile-mage-node +++ b/dev/testv2/tools/docker/Dockerfile-mage-node @@ -2,6 +2,10 @@ FROM registry.itg.cloud/itg-commerce/emarsys-magento2-extension-test/cypress:13. ARG NPM_TOKEN ENV NPM_TOKEN=${NPM_TOKEN} +RUN apt-get update && apt-get install -y dbus +RUN mkdir -p /run/dbus && \ + dbus-daemon --system --fork + COPY testv2 /test WORKDIR /test