From 66ba2393e0feadd6f40d788487931f89b16b3e0b Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Thu, 12 Nov 2026 02:06:20 +0100 Subject: [PATCH 1/6] [TASK] Remove unmaintained GitLab CI configuration The tests run via GitHub Actions, the GitLab CI configuration is not maintained any more. Remove its export-ignore entry from .gitattributes as well. Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 1 - .gitlab-ci.yml | 154 ------------------------------------------------- 2 files changed, 155 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitattributes b/.gitattributes index 3027163b..ae080b9a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,7 +3,6 @@ /Tests/ export-ignore /.editorconfig export-ignore /.gitattributes export-ignore -/.gitlab-ci.yml export-ignore /codeception.dist.yml export-ignore /crowdin.yml export-ignore /rector.php export-ignore diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index e4864d52..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,154 +0,0 @@ -cache: - key: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME" - paths: - - .composer/ - - .php_cs.cache - -variables: - TYPO3_VERSION: ^13.4 - -before_script: - - apk add git --update - -stages: - - lint - - test - - documentation - -lint:cgl: - image: $CI_REGISTRY/containers/phpunit-with-php-8.2:main - stage: lint - before_script: - - composer remove typo3/cms-* --no-update - - composer install --no-progress --no-ansi --no-interaction - script: - - vendor/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --dry-run --using-cache=no --path-mode=intersection ./ - - vendor/bin/typoscript-lint -c Build/typoscriptlint.yaml Configuration - -lint:yaml: - stage: lint - image: python:alpine3.7 - before_script: - - pip install yamllint==1.10.0 - script: - - yamllint -c Build/yamllint.yaml Configuration/ Resources/ - -.lint_php: &lint_php - stage: lint - image: $CONTAINER_IMAGE - script: - - find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l - -lint:php82: - <<: *lint_php - variables: - CONTAINER_IMAGE: php:8.2-alpine - -lint:php83: - <<: *lint_php - variables: - CONTAINER_IMAGE: php:8.3-alpine - -lint:php84: - <<: *lint_php - variables: - CONTAINER_IMAGE: php:8.4-alpine - -phpstan:analyse: - image: $CI_REGISTRY/containers/phpunit-with-php-8.2:main - stage: lint - before_script: - - sed -i -e "s#ssh://git@code.extco.de:22722#https://gitlab-ci-token:$CI_JOB_TOKEN@code.extco.de#g" composer.json - - composer config platform.php 8.2 - - composer install --no-progress --no-ansi --no-interaction - script: - - vendor/bin/codecept build - - vendor/bin/phpstan analyse -c Build/phpstan.neon --memory-limit 256M - -.test_php: &test_php - stage: test - services: - - mysql:5 - image: $CONTAINER_IMAGE - only: - - branches - before_script: - - composer config --no-plugins allow-plugins.typo3/cms-composer-installers true - - composer config --no-plugins allow-plugins.typo3/class-alias-loader true - - composer require typo3/cms-core="${TYPO3_VERSION}" - script: - - vendor/bin/phpunit -c Build/UnitTests.xml - - typo3DatabaseDriver=pdo_sqlite vendor/bin/phpunit -d memory_limit=256M -c Build/FunctionalTests.xml - -test:php82: - <<: *test_php - variables: - CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.2:main - -test:php83: - <<: *test_php - variables: - CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.3:main - -test:php84: - <<: *test_php - variables: - CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.4:main - -.test_codeception: &test_codeception - stage: test - image: $CONTAINER_IMAGE - only: - - branches - before_script: - - sed -i -e "s#ssh://git@code.extco.de:22722#https://gitlab-ci-token:$CI_JOB_TOKEN@code.extco.de#g" composer.json - - composer config --no-plugins allow-plugins.typo3/cms-composer-installers true - - composer config --no-plugins allow-plugins.typo3/class-alias-loader true - - composer require typo3/cms-core="${TYPO3_VERSION}" - script: - - mkdir -p .build/public/typo3temp/var/tests/acceptance-sqlite-dbs - - export typo3DatabaseDriver=pdo_sqlite - - export PROJECT_ROOT="$(pwd)" - - export INSTANCE_PATH="$(pwd)/.build/web/typo3temp/var/tests/acceptance" - - mkdir -p "$INSTANCE_PATH" - - mkdir -p "$PROJECT_ROOT/.build/web/typo3temp/var/tests/acceptance-logs/" - - vendor/bin/codecept run - artifacts: - paths: - - .build - expire_in: 1 day - when: always - -codeception:php82: - <<: *test_codeception - variables: - CONTAINER_IMAGE: $CI_REGISTRY/containers/codeception-with-php-8.2:main - -codeception:php83: - <<: *test_codeception - needs: - - codeception:php82 - variables: - CONTAINER_IMAGE: $CI_REGISTRY/containers/codeception-with-php-8.3:main - -codeception:php84: - <<: *test_codeception - needs: - - codeception:php83 - variables: - CONTAINER_IMAGE: $CI_REGISTRY/containers/codeception-with-php-8.4:main - -documentation: - stage: documentation - image: - name: ghcr.io/typo3-documentation/render-guides:latest - entrypoint: [ "" ] - script: - - mkdir -p Documentation-GENERATED-temp - - /opt/guides/entrypoint.sh --config=Documentation --no-progress --fail-on-log - before_script: [] - artifacts: - paths: - - Documentation-GENERATED-temp/ - expire_in: 1 day - when: always From 31a8cf465d896bb91ce52e137ef56de3144abfb0 Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Thu, 12 Nov 2026 02:15:50 +0100 Subject: [PATCH 2/6] [TASK] Add missing export-ignore entries to .gitattributes Exclude all files that are only needed for development from the distribution archive, so they do not end up in the vendor directory of projects installing the extension. Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index ae080b9a..71f27a5f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,6 +3,7 @@ /Tests/ export-ignore /.editorconfig export-ignore /.gitattributes export-ignore +/.gitignore export-ignore /codeception.dist.yml export-ignore /crowdin.yml export-ignore /rector.php export-ignore From 8626597b4c467d0492b1b88b885996ac913fe343 Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Thu, 12 Nov 2026 01:58:13 +0100 Subject: [PATCH 3/6] [TASK] Use same build directory for all cart extensions Move the vendor, bin and web directory to .Build/vendor, .Build/bin and .Build/public, as done by the TYPO3BestPractices/tea extension and most of the widely used TYPO3 extensions. All references in composer.json, CI configuration, test configuration, scripts and shell.nix are adjusted accordingly. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yaml | 6 +++--- .gitignore | 3 +-- Build/phpunit.xml.dist | 2 +- codeception.dist.yml | 6 +++--- composer.json | 22 ++++++++++++---------- shell.nix | 26 +++++++++++++------------- 6 files changed, 33 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8c3c986f..5f00c6ee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -60,7 +60,7 @@ jobs: run: composer install --prefer-dist --no-progress --no-suggest - name: Coding Guideline - run: vendor/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --dry-run --using-cache=no --path-mode=intersection ./ + run: .Build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --dry-run --using-cache=no --path-mode=intersection ./ code-quality: runs-on: ubuntu-latest @@ -89,10 +89,10 @@ jobs: composer require --no-interaction --prefer-dist --no-progress "typo3/cms-core:${{ matrix.typo3-version }}" "typo3/cms-extbase:${{ matrix.typo3-version }}" "typo3/cms-frontend:${{ matrix.typo3-version }}" - name: Build codeception tester - run: vendor/bin/codecept build + run: .Build/bin/codecept build - name: Code Quality (by PHPStan) - run: vendor/bin/phpstan analyse -c Build/phpstan.neon + run: .Build/bin/phpstan analyse -c Build/phpstan.neon test-php: runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index f312b22f..4d12c2a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.build +.Build composer.lock .php-cs-fixer.cache @@ -9,6 +9,5 @@ Build/.phpunit.cache .idea var/ -vendor/ coverage_result/ diff --git a/Build/phpunit.xml.dist b/Build/phpunit.xml.dist index 36e947ad..e7159b54 100644 --- a/Build/phpunit.xml.dist +++ b/Build/phpunit.xml.dist @@ -1,5 +1,5 @@ - + diff --git a/codeception.dist.yml b/codeception.dist.yml index 9808a21b..1cdc7a98 100644 --- a/codeception.dist.yml +++ b/codeception.dist.yml @@ -3,7 +3,7 @@ namespace: 'Extcode\CartEvents\Tests\Acceptance\Support' paths: tests: 'Tests/Acceptance' data: 'Tests/Acceptance/Data' - output: '.build/web/typo3temp/var/tests/acceptance-reports' + output: '.Build/public/typo3temp/var/tests/acceptance-reports' support: 'Tests/Acceptance/Support' settings: @@ -13,8 +13,8 @@ extensions: enabled: - 'Codeception\Extension\RunProcess': - - 'geckodriver > .build/web/typo3temp/var/tests/acceptance-logs/geckodriver.log 2>&1' - - 'TYPO3_PATH_APP="$INSTANCE_PATH" TYPO3_PATH_ROOT="$INSTANCE_PATH" php -S 127.0.0.1:8080 -t "$INSTANCE_PATH" > .build/web/typo3temp/var/tests/acceptance-logs/php.log 2>&1' + - 'geckodriver > .Build/public/typo3temp/var/tests/acceptance-logs/geckodriver.log 2>&1' + - 'TYPO3_PATH_APP="$INSTANCE_PATH" TYPO3_PATH_ROOT="$INSTANCE_PATH" php -S 127.0.0.1:8080 -t "$INSTANCE_PATH" > .Build/public/typo3temp/var/tests/acceptance-logs/php.log 2>&1' - 'Codeception\Extension\Recorder' - diff --git a/composer.json b/composer.json index c30fe088..f4d977cb 100644 --- a/composer.json +++ b/composer.json @@ -38,12 +38,14 @@ "typo3/class-alias-loader": true, "sbuerk/typo3-cmscomposerinstallers-testingframework-bridge": true, "phpstan/extension-installer": true - } + }, + "vendor-dir": ".Build/vendor", + "bin-dir": ".Build/bin" }, "extra": { "typo3/cms": { "extension-key": "cart_events", - "web-dir": ".build/web" + "web-dir": ".Build/public" } }, "require": { @@ -75,31 +77,31 @@ }, "scripts": { "test:cgl": [ - "vendor/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --using-cache=no --path-mode=intersection ./" + ".Build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --using-cache=no --path-mode=intersection ./" ], "test:cgl:dry-run": [ - "vendor/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --dry-run --using-cache=no --path-mode=intersection ./" + ".Build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --dry-run --using-cache=no --path-mode=intersection ./" ], "test:php:lint": [ "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l" ], "test:php:unit": [ - "vendor/bin/phpunit -c Build/UnitTests.xml" + ".Build/bin/phpunit -c Build/UnitTests.xml" ], "test:php:functional": [ - "typo3DatabaseDriver=\"pdo_sqlite\" vendor/bin/phpunit -c Build/FunctionalTests.xml" + "typo3DatabaseDriver=\"pdo_sqlite\" .Build/bin/phpunit -c Build/FunctionalTests.xml" ], "test:phpstan:analyse": [ - "vendor/bin/phpstan analyse -c Build/phpstan.neon" + ".Build/bin/phpstan analyse -c Build/phpstan.neon" ], "test:rector:process": [ - "vendor/bin/rector process" + ".Build/bin/rector process" ], "test:rector:process:dry-run": [ - "vendor/bin/rector process --dry-run" + ".Build/bin/rector process --dry-run" ], "test:typoscript:lint": [ - "vendor/bin/typoscript-lint -c Build/typoscriptlint.yaml Configuration" + ".Build/bin/typoscript-lint -c Build/typoscriptlint.yaml Configuration" ], "test:php": [ "@test:php:lint", diff --git a/shell.nix b/shell.nix index 81275220..369c05e3 100644 --- a/shell.nix +++ b/shell.nix @@ -28,7 +28,7 @@ let composer ]; text = '' - rm -rf .Build/ vendor/ composer.lock + rm -rf .Build/ composer.lock composer update --prefer-dist --no-progress --working-dir="$PROJECT_ROOT" ''; }; @@ -41,7 +41,7 @@ let ]; text = '' - ./vendor/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --dry-run --diff + ./.Build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --dry-run --diff ''; }; @@ -53,7 +53,7 @@ let ]; text = '' - ./vendor/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php + ./.Build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php ''; }; @@ -77,7 +77,7 @@ let ]; text = '' - ./vendor/bin/phpstan analyse -c Build/phpstan.neon --memory-limit 256M + ./.Build/bin/phpstan analyse -c Build/phpstan.neon --memory-limit 256M ''; }; @@ -89,7 +89,7 @@ let ]; text = '' project-install - ./vendor/bin/phpunit -c Build/phpunit.xml.dist --testsuite unit --display-warnings --display-deprecations --display-errors + ./.Build/bin/phpunit -c Build/phpunit.xml.dist --testsuite unit --display-warnings --display-deprecations --display-errors ''; }; @@ -101,7 +101,7 @@ let ]; text = '' project-install - ./vendor/bin/phpunit -c Build/phpunit.xml.dist --testsuite functional --display-warnings --display-deprecations --display-errors + ./.Build/bin/phpunit -c Build/phpunit.xml.dist --testsuite functional --display-warnings --display-deprecations --display-errors ''; }; @@ -113,7 +113,7 @@ let ]; text = '' project-install - XDEBUG_MODE=coverage ./vendor/bin/phpunit -c Build/phpunit.xml.dist --coverage-html=coverage_result + XDEBUG_MODE=coverage ./.Build/bin/phpunit -c Build/phpunit.xml.dist --coverage-html=coverage_result ''; }; @@ -130,14 +130,14 @@ let text = '' project-install - mkdir -p "$PROJECT_ROOT/.build/web/typo3temp/var/tests/acceptance" - mkdir -p "$PROJECT_ROOT/.build/web/typo3temp/var/tests/acceptance-logs" - mkdir -p "$PROJECT_ROOT/.build/web/typo3temp/var/tests/acceptance-reports" - mkdir -p "$PROJECT_ROOT/.build/web/typo3temp/var/tests/acceptance-sqlite-dbs" + mkdir -p "$PROJECT_ROOT/.Build/public/typo3temp/var/tests/acceptance" + mkdir -p "$PROJECT_ROOT/.Build/public/typo3temp/var/tests/acceptance-logs" + mkdir -p "$PROJECT_ROOT/.Build/public/typo3temp/var/tests/acceptance-reports" + mkdir -p "$PROJECT_ROOT/.Build/public/typo3temp/var/tests/acceptance-sqlite-dbs" - export INSTANCE_PATH="$PROJECT_ROOT/.build/web/typo3temp/var/tests/acceptance" + export INSTANCE_PATH="$PROJECT_ROOT/.Build/public/typo3temp/var/tests/acceptance" - ./vendor/bin/codecept run + ./.Build/bin/codecept run pgrep -f "php -S" | xargs -r kill pgrep -f "geckodriver" | xargs -r kill From 4e9f95491cc71d69bd2d3cd291d827610841ca3c Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Thu, 12 Nov 2026 12:42:02 +0100 Subject: [PATCH 4/6] [BUGFIX] Replace see with waitForText in acceptance tests The waitForText waits up to 5 seconds. The see checks immediatly for the string. If the server (test) takes a little bit longer the test will fail. Co-Authored-By: Claude Opus 5.5 --- Tests/Acceptance/AddEventDateToCartCest.php | 48 ++++++++++----------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/Tests/Acceptance/AddEventDateToCartCest.php b/Tests/Acceptance/AddEventDateToCartCest.php index 5989aa4b..8d76b494 100644 --- a/Tests/Acceptance/AddEventDateToCartCest.php +++ b/Tests/Acceptance/AddEventDateToCartCest.php @@ -39,14 +39,14 @@ public function addBookableEventToCart(Tester $I): void $I->seeInField("input[name='tx_cart_cart[quantity]']", '1'); $I->seeElement('input[type="submit"]'); $I->click('input[type="submit"]'); - $I->see('Item was added to cart.', '#event-date-2 .form-message .form-success'); + $I->waitForText('Item was added to cart.', 5, '#event-date-2 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-2 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-2 .form-message .form-error'); $I->wantTo('Add the first event date with quantity of 2 to cart.'); $I->fillField("input[name='tx_cart_cart[quantity]']", '2'); $I->click('input[type="submit"]'); - $I->see('2 Items were added to cart.', '#event-date-2 .form-message .form-success'); + $I->waitForText('2 Items were added to cart.', 5, '#event-date-2 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-2 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-2 .form-message .form-error'); @@ -82,7 +82,7 @@ public function addBookableEventDateWithoutSeatHandlingToCart(Tester $I): void $I->fillField("input[name='tx_cart_cart[quantity]']", '1000'); $I->seeElement('input[type="submit"]'); $I->click('input[type="submit"]'); - $I->see('1000 Items were added to cart.', '#event-date-2 .form-message .form-success'); + $I->waitForText('1000 Items were added to cart.', 5, '#event-date-2 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-2 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-2 .form-message .form-error'); @@ -120,14 +120,14 @@ public function addBookableEventDateWithAvailableNumberOfSeatToCart(Tester $I): $I->seeInField("#event-date-3 input[name='tx_cart_cart[quantity]']", '1'); $I->seeElement('#event-date-3 input[type="submit"]'); $I->click('#event-date-3 input[type="submit"]'); - $I->see('Item was added to cart.', '#event-date-3 .form-message .form-success'); + $I->waitForText('Item was added to cart.', 5, '#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-error'); $I->wantTo('Add the first event date with quantity of 2 to cart.'); $I->fillField("#event-date-3 input[name='tx_cart_cart[quantity]']", '2'); $I->click('#event-date-3 input[type="submit"]'); - $I->see('2 Items were added to cart.', '#event-date-3 .form-message .form-success'); + $I->waitForText('2 Items were added to cart.', 5, '#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-error'); @@ -165,7 +165,7 @@ public function addDifferentBookableEventDatesWithAvailableNumberOfSeatToCart(Te $I->seeInField("#event-date-3 input[name='tx_cart_cart[quantity]']", '1'); $I->seeElement('#event-date-3 input[type="submit"]'); $I->click('#event-date-3 input[type="submit"]'); - $I->see('Item was added to cart.', '#event-date-3 .form-message .form-success'); + $I->waitForText('Item was added to cart.', 5, '#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-error'); @@ -175,7 +175,7 @@ public function addDifferentBookableEventDatesWithAvailableNumberOfSeatToCart(Te $I->fillField("#event-date-4 input[name='tx_cart_cart[quantity]']", '2'); $I->seeElement('#event-date-4 input[type="submit"]'); $I->click('#event-date-4 input[type="submit"]'); - $I->see('2 Items were added to cart.', '#event-date-4 .form-message .form-success'); + $I->waitForText('2 Items were added to cart.', 5, '#event-date-4 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-4 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-4 .form-message .form-error'); @@ -218,7 +218,7 @@ public function addBookableEventDateWithAvailableNumberOfSeatButNotMoreToCart(Te $I->seeInField("#event-date-3 input[name='tx_cart_cart[quantity]']", '1'); $I->fillField("#event-date-3 input[name='tx_cart_cart[quantity]']", '10'); $I->click('#event-date-3 input[type="submit"]'); - $I->see('Desired number of this item not available.', '#event-date-3 .form-message .form-error'); + $I->waitForText('Desired number of this item not available.', 5, '#event-date-3 .form-message .form-error'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-error'); @@ -228,14 +228,14 @@ public function addBookableEventDateWithAvailableNumberOfSeatButNotMoreToCart(Te $I->fillField("#event-date-3 input[name='tx_cart_cart[quantity]']", '9'); $I->seeElement('#event-date-3 input[type="submit"]'); $I->click('#event-date-3 input[type="submit"]'); - $I->see('9 Items were added to cart.', '#event-date-3 .form-message .form-success'); + $I->waitForText('9 Items were added to cart.', 5, '#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-error'); $I->wantTo('Add the first event date with quantity of 1 to cart.'); $I->seeInField("#event-date-3 input[name='tx_cart_cart[quantity]']", '1'); $I->click('#event-date-3 input[type="submit"]'); - $I->see('Desired number of this item not available.', '#event-date-3 .form-message .form-error'); + $I->waitForText('Desired number of this item not available.', 5, '#event-date-3 .form-message .form-error'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-error'); @@ -274,14 +274,14 @@ public function addDifferentBookableEventDateWithAvailableNumberOfSeatButNotMore $I->fillField("#event-date-3 input[name='tx_cart_cart[quantity]']", '9'); $I->seeElement('#event-date-3 input[type="submit"]'); $I->click('#event-date-3 input[type="submit"]'); - $I->see('9 Items were added to cart.', '#event-date-3 .form-message .form-success'); + $I->waitForText('9 Items were added to cart.', 5, '#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-error'); $I->wantTo('Add the first event date with quantity of 1 to cart.'); $I->seeInField("#event-date-3 input[name='tx_cart_cart[quantity]']", '1'); $I->click('#event-date-3 input[type="submit"]'); - $I->see('Desired number of this item not available.', '#event-date-3 .form-message .form-error'); + $I->waitForText('Desired number of this item not available.', 5, '#event-date-3 .form-message .form-error'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-3 .form-message .form-error'); @@ -289,7 +289,7 @@ public function addDifferentBookableEventDateWithAvailableNumberOfSeatButNotMore $I->seeInField("#event-date-4 input[name='tx_cart_cart[quantity]']", '1'); $I->fillField("#event-date-4 input[name='tx_cart_cart[quantity]']", '9'); $I->click('#event-date-4 input[type="submit"]'); - $I->see('Desired number of this item not available.', '#event-date-4 .form-message .form-error'); + $I->waitForText('Desired number of this item not available.', 5, '#event-date-4 .form-message .form-error'); $I->waitForElementNotVisible('#event-date-4 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-4 .form-message .form-error'); @@ -299,7 +299,7 @@ public function addDifferentBookableEventDateWithAvailableNumberOfSeatButNotMore $I->fillField("#event-date-4 input[name='tx_cart_cart[quantity]']", '7'); $I->seeElement('#event-date-4 input[type="submit"]'); $I->click('#event-date-4 input[type="submit"]'); - $I->see('7 Items were added to cart.', '#event-date-4 .form-message .form-success'); + $I->waitForText('7 Items were added to cart.', 5, '#event-date-4 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-4 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-4 .form-message .form-error'); @@ -309,14 +309,14 @@ public function addDifferentBookableEventDateWithAvailableNumberOfSeatButNotMore $I->fillField("#event-date-4 input[name='tx_cart_cart[quantity]']", '1'); $I->seeElement('#event-date-4 input[type="submit"]'); $I->click('#event-date-4 input[type="submit"]'); - $I->see('Item was added to cart.', '#event-date-4 .form-message .form-success'); + $I->waitForText('Item was added to cart.', 5, '#event-date-4 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-4 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-4 .form-message .form-error'); $I->wantTo('Add the second event date with quantity of 1 to cart.'); $I->seeInField("#event-date-4 input[name='tx_cart_cart[quantity]']", '1'); $I->click('#event-date-4 input[type="submit"]'); - $I->see('Desired number of this item not available.', '#event-date-4 .form-message .form-error'); + $I->waitForText('Desired number of this item not available.', 5, '#event-date-4 .form-message .form-error'); $I->waitForElementNotVisible('#event-date-4 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-4 .form-message .form-error'); @@ -350,7 +350,7 @@ public function addBookableEventDateWithPriceCategoryAvailableNumberOfSeatToCart $I->fillField("#event-date-7 input[name='tx_cart_cart[quantity]']", '1'); $I->seeElement('#event-date-7 input[type="submit"]'); $I->click('#event-date-7 input[type="submit"]'); - $I->see('Item was added to cart.', '#event-date-7 .form-message .form-success'); + $I->waitForText('Item was added to cart.', 5, '#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-error'); @@ -360,7 +360,7 @@ public function addBookableEventDateWithPriceCategoryAvailableNumberOfSeatToCart $I->fillField("#event-date-7 input[name='tx_cart_cart[quantity]']", '7'); $I->seeElement('#event-date-7 input[type="submit"]'); $I->click('#event-date-7 input[type="submit"]'); - $I->see('7 Items were added to cart.', '#event-date-7 .form-message .form-success'); + $I->waitForText('7 Items were added to cart.', 5, '#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-error'); } @@ -381,7 +381,7 @@ public function addBookableEventDateWithPriceCategoryAvailableNumberOfSeatButNot $I->fillField("#event-date-7 input[name='tx_cart_cart[quantity]']", '38'); $I->seeElement('#event-date-7 input[type="submit"]'); $I->click('#event-date-7 input[type="submit"]'); - $I->see('Desired number of this item not available.', '#event-date-7 .form-message .form-error'); + $I->waitForText('Desired number of this item not available.', 5, '#event-date-7 .form-message .form-error'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-error'); @@ -391,7 +391,7 @@ public function addBookableEventDateWithPriceCategoryAvailableNumberOfSeatButNot $I->fillField("#event-date-7 input[name='tx_cart_cart[quantity]']", '37'); $I->seeElement('#event-date-7 input[type="submit"]'); $I->click('#event-date-7 input[type="submit"]'); - $I->see('37 Items were added to cart.', '#event-date-7 .form-message .form-success'); + $I->waitForText('37 Items were added to cart.', 5, '#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-error'); @@ -401,7 +401,7 @@ public function addBookableEventDateWithPriceCategoryAvailableNumberOfSeatButNot $I->fillField("#event-date-7 input[name='tx_cart_cart[quantity]']", '1'); $I->seeElement('#event-date-7 input[type="submit"]'); $I->click('#event-date-7 input[type="submit"]'); - $I->see('Desired number of this item not available.', '#event-date-7 .form-message .form-error'); + $I->waitForText('Desired number of this item not available.', 5, '#event-date-7 .form-message .form-error'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-error'); } @@ -423,7 +423,7 @@ public function addDifferentBookableEventDateWithPriceCategoryAvailableNumberOfS $I->fillField("#event-date-7 input[name='tx_cart_cart[quantity]']", '37'); $I->seeElement('#event-date-7 input[type="submit"]'); $I->click('#event-date-7 input[type="submit"]'); - $I->see('37 Items were added to cart.', '#event-date-7 .form-message .form-success'); + $I->waitForText('37 Items were added to cart.', 5, '#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-error'); @@ -434,7 +434,7 @@ public function addDifferentBookableEventDateWithPriceCategoryAvailableNumberOfS $I->fillField("#event-date-7 input[name='tx_cart_cart[quantity]']", '1'); $I->seeElement('#event-date-7 input[type="submit"]'); $I->click('#event-date-7 input[type="submit"]'); - $I->see('Desired number of this item not available.', '#event-date-7 .form-message .form-error'); + $I->waitForText('Desired number of this item not available.', 5, '#event-date-7 .form-message .form-error'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-error'); @@ -445,7 +445,7 @@ public function addDifferentBookableEventDateWithPriceCategoryAvailableNumberOfS $I->fillField("#event-date-7 input[name='tx_cart_cart[quantity]']", '1'); $I->seeElement('#event-date-7 input[type="submit"]'); $I->click('#event-date-7 input[type="submit"]'); - $I->see('Item was added to cart.', '#event-date-7 .form-message .form-success'); + $I->waitForText('Item was added to cart.', 5, '#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-success'); $I->waitForElementNotVisible('#event-date-7 .form-message .form-error'); } From bd89348058b2266d95c7174b2ec643407eaf98fa Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Thu, 12 Nov 2026 12:47:20 +0100 Subject: [PATCH 5/6] [DOCS] Use composer package name as interlink shortcode --- Documentation/guides.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/guides.xml b/Documentation/guides.xml index 36ccd264..81fafa6f 100644 --- a/Documentation/guides.xml +++ b/Documentation/guides.xml @@ -8,7 +8,7 @@ edit-on-github-branch="main" edit-on-github="extcode/cart_events" typo3-core-preferred="stable" - interlink-shortcode="extcode/cart_events" + interlink-shortcode="extcode/cart-events" /> Date: Thu, 12 Nov 2026 14:18:20 +0100 Subject: [PATCH 6/6] [BUGFIX] Use stable nixos version and cacert package PHP 8.2 is no longer available in nixos-unstable, so the unit, functional and acceptance tests for PHP 8.2 failed in the CI workflow. The workflow now uses the stable channel nixos-26.05 like the main branch, which still provides PHP 8.2. The fossar/nix-phps channel and its binary cache are no longer required. The obviously removed cacert package in newer nixos actions throws an error when pulling a composer dependency from other sources using a Let's Encrypt certificate, so it is added to the shell. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yaml | 14 ++++---------- shell.nix | 1 + 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5f00c6ee..3cddf79d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -102,12 +102,9 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v17 + - uses: cachix/install-nix-action@v31 with: - nix_path: nixpkgs=channel:nixos-unstable:phps=https://github.com/fossar/nix-phps/archive/master.tar.gz - extra_nix_config: | - trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= fossar.cachix.org-1:Zv6FuqIboeHPWQS7ysLCJ7UT7xExb4OE8c4LyGb5AsE= - substituters = https://cache.nixos.org/ https://fossar.cachix.org + nix_path: nixpkgs=channel:nixos-26.05 - name: Run Unit Tests PHP8.2 run: nix-shell --arg phpVersion \"php82\" --pure --run project-test-unit @@ -134,12 +131,9 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v17 + - uses: cachix/install-nix-action@v31 with: - nix_path: nixpkgs=channel:nixos-unstable:phps=https://github.com/fossar/nix-phps/archive/master.tar.gz - extra_nix_config: | - trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= fossar.cachix.org-1:Zv6FuqIboeHPWQS7ysLCJ7UT7xExb4OE8c4LyGb5AsE= - substituters = https://cache.nixos.org/ https://fossar.cachix.org + nix_path: nixpkgs=channel:nixos-26.05 - name: Run Acceptance Tests PHP8.2 run: nix-shell --arg phpVersion \"php82\" --pure --run project-test-acceptance diff --git a/shell.nix b/shell.nix index 369c05e3..e71aa879 100644 --- a/shell.nix +++ b/shell.nix @@ -147,6 +147,7 @@ let in pkgs.mkShellNoCC { name = "TYPO3 Extension extcode/cart-products"; buildInputs = [ + pkgs.cacert php composer projectInstall