← Back to team overview

mahara-contributors team mailing list archive

[Bug 1999456] Re: Inconsistent loading of Views on Collections

 

** Tags added: behat-test

** Summary changed:

- Inconsistent loading of Views on Collections
+ Behat: Inconsistent loading of views on collections

** Changed in: mahara
       Status: New => Confirmed

** Changed in: mahara
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1999456

Title:
  Behat: Inconsistent loading of views on collections

Status in Mahara:
  Confirmed

Bug description:
  While resolving a behat error I found that $collection->views was not
  consistently populating.  It was also reliably not populating on the
  same behat step.

  When this is run outside of the Behat context this works fine.

  We should figure out why this does not populate when being tested in
  behat but does work when tested in a dev environment.

  This has been resolved by checking for the views parameter being
  populated and, if not, call the views() method to populate it.

  The bandaid is located here:
  https://reviews.mahara.org/c/mahara/+/13463/20/htdocs/lib/collection.php#1172

  The behat step that was failing is this one:
  https://git.mahara.org/mahara/mahara/-/blob/main/test/behat/features/site_content/group_view_block.feature#L259

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1999456/+subscriptions



References