This is an internal package containing Functional Tests based on Playwright. This is used specifically by the Loki Checkout core development team. Do not use this for your own shop. Also, do not enable the module Yireo_LokiCheckoutFunctionalTests
in production. When using this module anyway, do make sure to configured a proper token.
Current status: In development
Install this package via composer (assuming you have setup the composer.yireo.com
repository correctly already):
composer require yireo/magento2-loki-checkout-functional-tests
Next, enable this module:
bin/magento module:enable Yireo_LokiCheckoutFunctionalTests
Setup Playwright:
cd vendor/yireo/magento2-loki-checkout-functional-tests/
npm install
npx playwright install
Next, create a custom .env
file:
TEST_URL=http://magento.local
TEST_TOKEN=foobar
Make sure the token is configured in the Magento Admin Panel as well:
bin/magento config:set yireo_loki_functional_tests/general/token foobar
Run tests in headless mode:
npx playwright test
npx playwright show-report
Or run tests in the UI mode:
npx playwright test --ui
For getting support, create an Issue under the following project URL:
https://gitlab.yireo.com/loki-checkout/Yireo_LokiCheckoutFunctionalTests
dev-main | 24 February 2025 |
0.0.2 | 22 February 2025 |
0.0.1 | 21 February 2025 |
Magento module name | Yireo_LokiCheckoutFunctionalTests |
Composer name | yireo/magento2-loki-checkout-functional-tests |
Composer version | 0.0.2 |
Default branch | main |
Requirements |
magento/framework: ^103.0
|