Yireo_LokiCheckoutFunctionalTests

Yireo_LokiCheckoutDemo

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

Installation

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

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

Running tests

Run tests in headless mode:

npx playwright test
npx playwright show-report

Or run tests in the UI mode:

npx playwright test --ui

Support

For getting support, create an Issue under the following project URL:

https://gitlab.yireo.com/loki-checkout/Yireo_LokiCheckoutFunctionalTests

Todo

Module
Module Setup
Intended functionality

Versions

dev-main 24 February 2025
0.0.2 22 February 2025
0.0.1 21 February 2025

Composer details

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
yireo/magento2-loki-checkout: ~0.0

Changelog

[0.0.2] - 22 February 2025

Fixed

  • Change deps

[0.0.1] - 21 February 2025

  • Initial release

Last modified: January 26, 2025