11image : node:18-bullseye
22
33stages :
4+ - testing_suite
45 - mirror
56
67variables :
78 GIT_DEPTH : 0
89 GIT_TRACE : 1
10+
11+ PLAYWRIGHT_BASE_URL : https://hyva-demo.elgentos.io/
12+ PLAYWRIGHT_PRODUCTION_URL : https://hyva-demo.elgentos.io/
13+ PLAYWRIGHT_STAGING_URL : https://hyva-demo.elgentos.io/
14+
15+ MAGENTO_ADMIN_SLUG : $MAGENTO_ADMIN_SLUG
16+ MAGENTO_ADMIN_USERNAME : $MAGENTO_ADMIN_USERNAME
17+ MAGENTO_ADMIN_PASSWORD : $MAGENTO_ADMIN_PASSWORD
18+
19+ MAGENTO_NEW_ACCOUNT_PASSWORD : $MAGENTO_NEW_ACCOUNT_PASSWORD
20+ MAGENTO_EXISTING_ACCOUNT_EMAIL_CHROMIUM : $MAGENTO_EXISTING_ACCOUNT_EMAIL_CHROMIUM
21+ MAGENTO_EXISTING_ACCOUNT_EMAIL_FIREFOX : $MAGENTO_EXISTING_ACCOUNT_EMAIL_FIREFOX
22+ MAGENTO_EXISTING_ACCOUNT_EMAIL_WEBKIT : $MAGENTO_EXISTING_ACCOUNT_EMAIL_WEBKIT
23+ MAGENTO_EXISTING_ACCOUNT_PASSWORD : $MAGENTO_EXISTING_ACCOUNT_EMAIL_PASSWORD
24+ MAGENTO_EXISTING_ACCOUNT_CHANGED_PASSWORD : $MAGENTO_EXISTING_ACCOUNT_CHANGED_PASSWORD
25+
26+ MAGENTO_COUPON_CODE_CHROMIUM : $MAGENTO_COUPON_CODE_CHROMIUM
27+ MAGENTO_COUPON_CODE_FIREFOX : $MAGENTO_COUPON_CODE_FIREFOX
28+ MAGENTO_COUPON_CODE_WEBKIT : $MAGENTO_COUPON_CODE_WEBKIT
29+
30+ CAPTCHA_BYPASS : true
931
1032mirror_to_github :
1133 stage : mirror
@@ -37,4 +59,46 @@ test_mirror_pipeline:
3759 - git config --global user.name "developer-elgentos"
3860 -
git config --global user.email "[email protected] " 3961 script :
40- -
git ls-remote [email protected] :elgentos/magento2-playwright.git 62+ -
git ls-remote [email protected] :elgentos/magento2-playwright.git 63+
64+ create_testing_suite :
65+ stage : testing_suite
66+ script :
67+ - echo 'Setting up the testing environment'
68+ - mkdir -p base-tests
69+ - npm install
70+ - npx playwright install-deps
71+ # Check what files are present
72+ - ls -l base-tests
73+ - CI=true npx playwright test --grep "@setup" --reporter=line --workers=4
74+ allow_failure : false
75+ artifacts :
76+ when : always
77+ paths :
78+ - node_modules/
79+ - playwright-report/
80+ - test-results/
81+ - base-tests/
82+ - tests/
83+ - .env
84+ - bypass-captcha.config.ts
85+ - playwright.config.ts
86+ - tsconfig.json
87+
88+ # Build and test suite using this new version of the suite
89+ # Ensure that you've enabled the 'pipeline must succeed' setting in your branch.
90+ run_testing_suite :
91+ stage : testing_suite
92+ script :
93+ - echo 'Running test suite'
94+ - npx playwright install --with-deps
95+ - CI=true npx playwright test --workers=4 --grep-invert "@setup"
96+ needs : [create_testing_suite] # optional, stage order already enforces this
97+ dependencies :
98+ - create_testing_suite
99+ allow_failure : false
100+ artifacts :
101+ when : always
102+ paths :
103+ - playwright-report/
104+ - test-results/
0 commit comments