From 149dfc90dcca2b8fd2a7faf6b94eb69d9eac247f Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Mon, 23 Feb 2026 11:18:19 +0100 Subject: [PATCH] [ECP-9912] Configure NOK currency for E2E tests --- .github/Makefile | 8 ++++++++ .github/workflows/e2e-test.yml | 3 +++ 2 files changed, 11 insertions(+) diff --git a/.github/Makefile b/.github/Makefile index 1a75de3560..9fff97afe8 100644 --- a/.github/Makefile +++ b/.github/Makefile @@ -81,6 +81,14 @@ fs: production: bin/magento deploy:mode:set production +# E2E test setup +setup-e2e: + bin/magento config:set currency/options/allow USD,EUR,NOK + mysql -h "$$DB_SERVER" -P "$$DB_PORT" -u "$$DB_USER" -p"$$DB_PASSWORD" "$$DB_NAME" -e \ + "INSERT INTO $${DB_PREFIX}directory_currency_rate (currency_from, currency_to, rate) VALUES ('EUR', 'NOK', 11) ON DUPLICATE KEY UPDATE rate = VALUES(rate);" + bin/magento cache:flush +# End of E2E test setup + # GraphQL tests GRAPHQL_XML_DIST=${MAGENTO_ROOT}/vendor/adyen/module-payment/Test/phpunit_graphql.xml.dist GRAPHQL_XML=${MAGENTO_ROOT}/dev/tests/api-functional/phpunit_graphql.xml diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 94c008e91d..7402600e7e 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -114,6 +114,9 @@ jobs: if: ${{ env.EXPRESS_BRANCH }} run: docker exec -u www-data magento2-container make enable-express + - name: Setup E2E test configurations + run: docker exec magento2-container make setup-e2e + - name: Switch to production mode run: docker exec -u www-data magento2-container make production