Skip to content

Commit

Permalink
MNT Fix behat test
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jul 20, 2022
1 parent 8f6c74b commit df99740
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ jobs:
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule')
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
with:
# DO NOT MERGE THIS - JUST A TEST
composer_require_extra: dnadesign/silverstripe-elemental:4.8.x-dev silverstripe/elemental-fileblock:2.3.1 silverstripe/behat-extension:4.8.2
3 changes: 2 additions & 1 deletion tests/Behat/features/block-link-field.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Feature: Add link to banner block
And a "image" "Uploads/folder1/file1.jpg"
And a "page" "Blocks Page" with a "Alice's Block" banner element with "Alice's sample content" content
Given I am logged in with "ADMIN" permissions
And I go to "/admin/pages/edit/show/6"
And I go to "/admin/pages"
And I click on "Blocks Page" in the tree
And I wait until I see the ".element-editor__element" element
Then I should see "Alice's Block"

Expand Down
4 changes: 3 additions & 1 deletion tests/Behat/features/element-editor.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ Feature: Manage banner blocks
Given I am logged in with "ADMIN" permissions
# Replace with 'And I click "Blocks Page" in the ".breadcrumbs-wrapper" element' once the ElementalArea refreshes,
# See https://github.com/dnadesign/silverstripe-elemental/issues/320
And I go to "/admin/pages/edit/show/6"
And I go to "/admin/pages"
And I click on "Blocks Page" in the tree
And I wait until I see the ".element-editor__element" element
Then I should see "Alice's Block"

@sboyd
Scenario: I can see the title and summary of each element
When I see a list of blocks
Then I should see a list of blocks
Expand Down

0 comments on commit df99740

Please sign in to comment.