Behat: New fixture Given the"block" exists:

Bug #1437956 reported by Jinelle Foley-Barnes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Unassigned

Bug Description

Hi,

It would be more efficient if we had a fixture for just adding blocks to a portfolio.

As an example the fixture could say:

And the given "name of block" block exists:

We could also make this fixture link to a group/institution. So the following blocks exists for a certain group page. Don't know if that's plausible or is right, but it's an idea.

Thanks ,

Jinelle

Tags: behat
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 15.10.0 → 16.04.0
status: New → Confirmed
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 16.04.0 → 16.10.0
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.0 → 16.10.1
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.1 → 17.04.0
Changed in mahara:
milestone: 17.04.0 → none
Revision history for this message
Robert Lyon (robertl-9) wrote :

This would be a bit more complicated that the other create _* functions in TestingDataGenerator.php as they have a predefined set of values that can be used (and unlikely to change much over time)

But blocks tend to be plugins with their own sets of config fields/values and some rely on certain artefacts existing, eg Journal entry block needs a blogpost artefact.

So we'd need to work out:
1) what the minimum bits of information we'd need that is generic to every block.
2) how to handle the custom fields of every block - and what values to set them to by default.
3) do we need to also generate specific underlying artefacts? and if so how to handle creating those

Revision history for this message
Steven (stevens-q) wrote :

This bug has been addressed and is now a Behat script for adding blocks to a page. test.feature

Changed in mahara:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.