Skip to content

Commit

Permalink
BUGFIX: Make e2e tests run via docker again (#3275)
Browse files Browse the repository at this point in the history
* BUGFIX: Make e2e tests with docker run again

This change is a backport from the fix in the 8.x branch

* TASK: Make selectbox test run more reliably

Limit the window height as it affects the
behaviour of the selectbox dropdown in the
tests.
  • Loading branch information
Sebobo committed Nov 28, 2022
1 parent 1de675c commit e6b0d82
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ test('SelectBox opens below and breaks out of the creation dialog if there\'s en

test('SelectBox opens above in creation dialog if there\'s not enough space below.', async t => {
await t
.resizeWindow(1200, 768)
.click(Selector('#neos-PageTree-AddNode'))
.click(ReactSelector('NodeTypeItem').withText('SelectBox opens above'))
.click(ReactSelector('NodeCreationDialog SelectBox'));
Expand Down
5 changes: 4 additions & 1 deletion Tests/IntegrationTests/TestDistribution/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "Neos test distribution. Change this number if you need to break CircleCI's cache: 14",
"config": {
"vendor-dir": "Packages/Libraries",
"bin-dir": "bin"
"bin-dir": "bin",
"allow-plugins": {
"neos/composer-plugin": true
}
},
"minimum-stability": "dev",
"require": {
Expand Down
5 changes: 5 additions & 0 deletions Tests/IntegrationTests/e2e-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ echo "##########################################################################
echo "# Install dependencies... #"
echo "#############################################################################"
dc exec -T php bash <<-'BASH'
cd /usr/src/app
sudo chown -R docker:docker .
cd TestDistribution
composer install
BASH
Expand Down Expand Up @@ -77,8 +79,11 @@ for fixture in $(pwd)/Tests/IntegrationTests/Fixtures/*/; do
# TODO: optimize this
cd TestDistribution
composer reinstall neos/test-nodetypes
composer reinstall neos/test-site
./flow flow:package:rescan > /dev/null
./flow flow:cache:flush > /dev/null
if ./flow site:list | grep -q 'Node name'; then
./flow site:prune '*' > /dev/null
fi
Expand Down

0 comments on commit e6b0d82

Please sign in to comment.