Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-28224: Fix Behat tests #232

Merged
merged 1 commit into from
Apr 12, 2018
Merged

EZP-28224: Fix Behat tests #232

merged 1 commit into from
Apr 12, 2018

Conversation

mnocon
Copy link
Member

@mnocon mnocon commented Apr 10, 2018

JIRA: https://jira.ez.no/browse/EZP-28224

Three things had to be changed in order to make the tests pass:

  1. Enabling Debug mode - the tests are searching for strings like
<!-- START src/AppBundle/Resources/views/user/registration_form.html.twig (AppBundle:user:registration_form.html.twig) -->

in the page source, which AFAIK are only displayed when Debug is enabled.

  1. Changing the way these strings are searched for: recently the format changed a bit (Display real template names in debug output ezpublish-kernel#2285), I've switched to Regex to account for that.

  2. Permissions: tests were trying to create a directory in app/Resources, but by default the www-data is owner of the app/config and src (https://github.com/ezsystems/ezplatform/blob/1.7/bin/.travis/trusty/setup_from_external_repo.sh#L68). I've switched the tests so that they are creating it in src/AppBundle now.

@mnocon mnocon changed the base branch from master to 1.5 April 10, 2018 06:41
@ezsystems ezsystems deleted a comment from ezrobot Apr 10, 2018
@ezsystems ezsystems deleted a comment from ezrobot Apr 10, 2018
@ezsystems ezsystems deleted a comment from ezrobot Apr 10, 2018
@mnocon mnocon changed the title [WIP] EZP-28224: Fix Behat tests EZP-28224: Fix Behat tests Apr 11, 2018
@andrerom
Copy link
Contributor

Nice catch @mnocon! :)

@lserwatka lserwatka merged commit ec40764 into ezsystems:1.5 Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants