mardi 27 juin 2017

How to update an attribute object's attribute before running acceptance test?

First, we setup a scenario like so:

setupProject(server, []);
  visit('/items');

This all works fine. The issue occurs when trying to update attributes of the current user prior to running the test.

Then update the current user with:

let user = server.create('user', 'organization', { enableManage: true });

This is intended to go to the specific user, go to an attribute object on that user called 'organization', and update an attribute of 'organization' called 'enableManage' to true.

Any help is appreciated.




Aucun commentaire:

Enregistrer un commentaire