Page MenuHomePhabricator

Provide a way of creating fake infusion data
Open, Needs TriagePublic

Description

I have to write QUnit tests for a special page's JavaScript module. The module heavily uses OO.ui.infuse() (because the interface is server-side generated). I am needed to generate the UI manually via JavaScript in the testing environment (AFAIK; tell me if there is a way of calling PHP for this purpose, please), but I cannot fake infusion data so I get errors like Widget not found.

What do you reccommend?