Skip to content

Commit

Permalink
Merge branch '2.2' into 2
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed May 19, 2021
2 parents a017931 + 19e015c commit c4d6bc0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .travis.yml
Expand Up @@ -6,9 +6,16 @@ import:
env:
global:
# Require at least recipe 4.7.x-dev to satisfy the silverstripe/admin:1.7@dev requirement
- REQUIRE_RECIPE="4.7.x-dev || "
# Allow the installation of 4.x-dev which is graphql 4 compatible for when running a job that requires graphql 4
# Also set the minimum version of elemental to 4.5.0 which is graphql 3 compatible only
# Otherwise elemental 4.4.1 will be installed which has no graphql contraint and is not graphql 4 compatible
- REQUIRE_EXTRA="dnadesign/silverstripe-elemental:^4.5@dev || 4.x-dev"
- REQUIRE_RECIPE="4.x-dev || "
- BEHAT_SUITE="elemental-bannerblock"

before_script:
# Allow the installation of 4.x-dev which is graphql 4 compatible for when running a job that requires graphql 4
# Also set the minimum version of elemental to 4.5.0 which is graphql 3 compatible only
# Otherwise elemental 4.4.1 will be installed which has no graphql contraint and is not graphql 4 compatible
# Doing this in before_script instead of REQUIRE_EXTRA above because the || would not work in conjuction with the
# unquoted $REQUIRE_EXTRA in travis-shared-config base.yml
- composer require --no-update "dnadesign/silverstripe-elemental:^4.5@dev || 4.x-dev"
# requiring via --no-update and the running update to bypass the php check on the php8 builds
# this can be reduced to a regular composer require once silverstripe-elemental supports php8 in composer.json
- composer update dnadesign/silverstripe-elemental
5 changes: 4 additions & 1 deletion tests/Behat/features/element-editor.feature
Expand Up @@ -76,7 +76,10 @@ Feature: Manage banner blocks
When I see a list of blocks
And I press the "View actions" button
Then I should see the archive button for block 1
When I press the "Archive" button

# Use css selector instead of 'When I press the "Archive" button' otherwise behat will get
# confused and click the Archive model admin
When I click on the ".element-editor__actions-archive.dropdown-item" element
And I see the text "Are you sure you want to send this block to the archive?" in the alert
And I confirm the dialog
# Sometimes Behat can be quicker than the time it takes the JS to remove the element...
Expand Down

0 comments on commit c4d6bc0

Please sign in to comment.