8787 cd "$GITHUB_WORKSPACE"
8888
8989 cd /tmp/magento
90+ git config --global --add safe.directory /__w/Loki_Components/Loki_Components
9091
9192 test -f "$GITHUB_WORKSPACE/.github/workflows/composer-additional.sh" && source "$GITHUB_WORKSPACE/.github/workflows/composer-additional.sh"
9293 test -f "$GITHUB_WORKSPACE/.github/workflows/composer-${MAGENTO_VERSION}.sh" && source "$GITHUB_WORKSPACE/.github/workflows/composer-${MAGENTO_VERSION}.sh"
9899
99100 bin/magento deploy:mode:set developer
100101 bin/magento module:enable Yireo_EnableModuleSequence
101- bin/magento module:sequence LokiCheckout_FunctionalTests
102+ bin/magento module:sequence LokiCheckout_FunctionalTests
102103 bin/magento module:sequence LokiCheckout_CoreCli
103104 bin/magento module:sequence "${MAGENTO_MODULE}"
104105 bin/magento setup:upgrade
@@ -107,18 +108,31 @@ jobs:
107108 magerun2 config:store:set loki_functional_tests/general/token loki -n
108109 cp -R /tmp/magento $GITHUB_WORKSPACE/magento
109110
111+ # - name: Prepare Magento Playwright setup
112+ # if: env.SKIP_JOB != 'true'
113+ # run: |
114+ # docker run --rm --network host -v "$GITHUB_WORKSPACE:/work" -w /work \
115+ # docker://mcr.microsoft.com/playwright:v1.59.1-noble bash -lc "
116+ # cd /work/magento/vendor/loki-checkout/magento2-functional-tests/Test/Playwright/
117+ # npm install
118+ # touch .env
119+ # echo TEST_URL=$MAGENTO_BASE_URL >> .env
120+ # echo TEST_TOKEN=loki >> .env
121+ # MAGENTO_ROOT=/work/magento npx playwright test --project=$MAGENTO_MODULE
122+ # "
123+
110124 - name : Prepare Magento Playwright setup
111125 if : env.SKIP_JOB != 'true'
112- uses : docker://mcr.microsoft.com/playwright:v1.57.0 -noble
126+ uses : docker://mcr.microsoft.com/playwright:v1.59.1 -noble
113127 with :
114128 args : >
115129 bash -lc "
116130 cd $GITHUB_WORKSPACE/magento/vendor/loki-checkout/magento2-functional-tests/Test/Playwright/
117131 cat $GITHUB_WORKSPACE/magento/app/etc/loki-checkout.json
118132 npm install
119- npx playwright install
133+ # npx playwright install
120134 touch .env
121- echo TEST_URL=$MAGENTO_BASE_URL >> .env
135+ echo TEST_URL=http://localhost:8888 >> .env
122136 echo TEST_TOKEN=loki >> .env
123137 MAGENTO_ROOT=$GITHUB_WORKSPACE/magento npx playwright test --project=$MAGENTO_MODULE
124138 "
0 commit comments