silverstripe/silverstripe-installer

Resolve failing asset-admin behat tests in installer

Closed this issue · 1 comments

Example of failed build artifacts:

It looks to be a white screen of death on load of assets. Perhaps a timeout ?

  @modal
 Scenario: I can limit edit permissions to admins                                                 # asset-admin/tests/behat/features/manage-file-permissions.feature:17
   When I check the folder named "folder1" in the gallery                                         # SilverStripe\AssetAdmin\Tests\Behat\Context\FixtureContext::stepICheckTheGalleryItem()
   Then I should see an ".bulk-actions__action[value='edit']" element                             # SilverStripe\AssetAdmin\Tests\Behat\Context\FeatureContext::assertElementOnPage()
   And the ".bulk-actions-counter" element should contain "1"                                     # SilverStripe\AssetAdmin\Tests\Behat\Context\FeatureContext::assertElementContains()
   When I press the "Edit" button                                                                 # SilverStripe\BehatExtension\Context\BasicContext::stepIPressTheButton()
   Then I should see the "Form_fileEditForm" form                                                 # SilverStripe\AssetAdmin\Tests\Behat\Context\FixtureContext::iShouldSeeTheForm()
   When I click "Permissions" in the "#Editor .nav-tabs" element                                  # SilverStripe\BehatExtension\Context\BasicContext::iClickInTheElement()
   And I select "Only these people (choose from list)" from "Who can edit this file?" input group # SilverStripe\BehatExtension\Context\BasicContext::iSelectFromInputGroup()
   And I select "ADMIN group" from "Editor Groups" input group                                    # SilverStripe\BehatExtension\Context\BasicContext::iSelectFromInputGroup()
   And I press the "Save" button                                                                  # SilverStripe\BehatExtension\Context\BasicContext::stepIPressTheButton()
   And I am not logged in                                                                         # SilverStripe\BehatExtension\Context\LoginContext::stepIAmNotLoggedIn()
   And I am logged in with "EDITOR" permissions                                                   # SilverStripe\BehatExtension\Context\LoginContext::iAmLoggedInWithPermissions()
   And I go to "/admin/assets"                                                                    # SilverStripe\AssetAdmin\Tests\Behat\Context\FeatureContext::visit()
Saving screenshot into /home/travis/build/silverstripe/silverstripe-installer/artifacts/screenshots/manage-file-permissions.feature_30.png
   And I click on the folder named "folder1" in the gallery                                       # SilverStripe\AssetAdmin\Tests\Behat\Context\FixtureContext::stepISelectGalleryItem()
     File named folder1 could not be found
     Failed asserting that null is not null.

Possible fix at #198