You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been looking into this a little bit. The democracy stuff is quite involved, it is more effort than expected to mock all this. Especially, as one has to consider quite many things when creating the mock data, and there is quite some networking involved.
Furthermore (something I have forgotten), our integration tests don't use any mocked data anymore. So I would have to instantiate a new integration test suite to reintroduce the mocks.
Hence, I think I want to try another route, however, it will not be the ultra low-hanging fruit we envisioned initially:
I believe the quickest way would be to actually create the proposals in the bootstrap script as an extra step, which is only executed with extra flag --populate-proposals. The additional advantage here would be that we can actually interact with the proposals in the integration tests and test the app at the same time.
Pro
Our encointer-cli already knows how to do that, hence the quickest way
We can actually test the app, and we can stay true to our integration testing paradigm
??
Con
Creating a reasonably sized electorate will take some time
For documentation, we'd like to mock an example democracy page. It should look somewhat similar to this populated scenario (bot-communities)
and one with old proposals
I'd like to be able to edit/mock all proposal data. but we can start with the ones in above screenshots
The text was updated successfully, but these errors were encountered: