Skip to content

Commit 57de691

Browse files
committed
[WIP] run acceptanceComposer in ci
1 parent b7d0b6d commit 57de691

3 files changed

Lines changed: 16 additions & 26 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-22.04
1414
strategy:
1515
matrix:
16-
php: [ '8.2', '8.3', '8.4', '8.5']
16+
php: [ '8.5' ]
1717
TYPO3: [ '13', '14' ]
1818
steps:
1919
- name: Checkout
@@ -22,31 +22,8 @@ jobs:
2222
- name: Install testing system
2323
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t ${{ matrix.TYPO3 }} -s composerInstall
2424

25-
- name: Composer validate
26-
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t ${{ matrix.TYPO3 }} -s composerValidate
27-
28-
- name: Lint PHP
29-
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t ${{ matrix.TYPO3 }} -s lint
30-
31-
- name: CGL
32-
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t ${{ matrix.TYPO3 }} -s cgl -n
33-
34-
- name: phpstan
35-
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t ${{ matrix.TYPO3 }} -s phpstan
36-
37-
- name: Unit Tests
38-
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t ${{ matrix.TYPO3 }} -s unit
39-
40-
- name: Functional Tests
41-
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t ${{ matrix.TYPO3 }} -s functional -- --do-not-fail-on-deprecation --exclude-group v14-only
42-
if: matrix.TYPO3 == '13'
43-
44-
- name: Functional Tests 14
45-
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t ${{ matrix.TYPO3 }} -s functional
46-
if: matrix.TYPO3 == '14'
47-
4825
- name: Acceptance Tests
49-
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t ${{ matrix.TYPO3 }} -s acceptance -- --fail-fast
26+
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -t ${{ matrix.TYPO3 }} -s acceptanceComposer -- --fail-fast
5027
- name: Archive acceptance tests results
5128
uses: actions/upload-artifact@v6
5229
if: always()

Tests/Acceptance/Backend/LayoutCest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function canCreateContentElementInTranslatedContainerInFreeMode(BackendTe
214214
$uid = 104;
215215

216216
$selector = '#element-tt_content-' . $uid . ' div:nth-child(1) div:nth-child(2)';
217-
$I->dontSee('german', $selector);
217+
$I->selectLayoutMode();
218218
$dataColPos = $I->getDataColPos($uid, 200);
219219
$colPosSelector = '#element-tt_content-' . $uid . ' [data-colpos="' . $dataColPos . '"]';
220220
$I->clickNewContentElement($colPosSelector);

Tests/Acceptance/Support/BackendTester.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,17 @@ public function selectLanguageComparisonMode(): void
139139
$this->click('Language Comparison', '.module-docheader-buttons .dropdown-menu');
140140
}
141141
}
142+
143+
public function selectLayoutMode(): void
144+
{
145+
if ($this->getTypo3MajorVersion() < 14) {
146+
$this->waitForElement('select[name="actionMenu"]');
147+
$this->selectOption('select[name="actionMenu"]', 'Layout');
148+
} else {
149+
$this->waitForElementVisible('.module-docheader-buttons .btn-group button.dropdown-toggle');
150+
$this->click('.module-docheader-buttons .btn-group button.dropdown-toggle');
151+
$this->waitForElementVisible('.module-docheader-buttons .dropdown-menu');
152+
$this->click('Layout', '.module-docheader-buttons .dropdown-menu');
153+
}
154+
}
142155
}

0 commit comments

Comments
 (0)