okTurtles / group-income

A decentralized and private (end-to-end encrypted) financial safety net for you and your friends.
https://groupincome.org
GNU Affero General Public License v3.0
329 stars 43 forks source link

add `bypassUI: true` option for `cy.giAddRandomIncome()` in `group-large.spec.js` #2342

Open SebinSong opened 1 week ago

SebinSong commented 1 week ago

Problem

in group-large.spec.js, there is a test step where a group with a large number of members (currently 12) is created. This test involves a repetitive step where many members add their income-details (which is cy.giAddRandomIncome()) but this is currently done in a manual way (by launching the IncomeDetails modal, typing the info, and clicking submit button etc..) By implementing bypassUI: true option for this command, the test duration can be reduced.

Solution

Implement it