frontend-monorepo
frontend-monorepo copied to clipboard
Testing referral set and team joining mechanics
The Chore
The new booleans create a lot of scenarios that mean we need to tweak transactions sent in various places, so I have tested them all.
Referral page
Apply referral code
This screen should simply make you join the set, it should not involve teams.
TX submitted:
{
"applyReferralCode": {
"id": "e06b06afebbe86add0fac950df5025fc4dfa762c7fedbe142db19cc5f9092c1c"
}
}
Status: FAIL
TX expected:
{
"applyReferralCode": {
"id": "e06b06afebbe86add0fac950df5025fc4dfa762c7fedbe142db19cc5f9092c1c"
"do_not_join_team": TRUE
}
}
Create referral code
This screen should create a simple referral code and should not create a team, or give you the option to.
TX Submitted:
{
"createReferralSet": {
"isTeam": false
}
}
Status: PASS
NB. I'm assuming the fact I dont see do_not_create_referral_set
is because it is false....
Competitions page
Create a team / solo play
Should be submitting a createReferralSet TX with the boolean to create the referral set to NO.
TX submitted:
{
"createReferralSet": {
"isTeam": true,
"team": {
"name": "TraderLad",
"teamUrl": "",
"avatarUrl": "",
"closed": true,
"allowList": []
}
}
}
Status: FAIL
TX expected:
{
"createReferralSet": {
"isTeam": true,
"do_not_create_referral_set":true,
"team": {
"name": "TraderLad",
"teamUrl": "",
"avatarUrl": "",
"closed": true,
"allowList": []
}
}
}
Create a team / solo play when you alredy have a referral set
Should change to "upgrade to team" and supply the updateReferralSet
TX.
Status: PASS
Join Team
TBC but pretty sure this all works