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

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.

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
WARNING: This module has no releases yet. If you want to use it, make sure to add the version @dev to the composer command.

Support

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

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

Todo

Module
Module Setup
Intended functionality

Versions

dev-main 25 January 2025

Composer details

Magento module name Yireo_LokiCheckoutFunctionalTests
Composer name yireo/magento2-loki-checkout-functional-tests
Composer version No release yet
Default branch main
Requirements magento/framework: *
yireo/magento2-loki-checkout: @dev

Last modified: January 26, 2025