Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing referral set and team joining mechanics #7041

Open
JonRay15 opened this issue Oct 24, 2024 · 0 comments
Open

Testing referral set and team joining mechanics #7041

JonRay15 opened this issue Oct 24, 2024 · 0 comments

Comments

@JonRay15
Copy link
Contributor

JonRay15 commented Oct 24, 2024

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

Additional details / background info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

No branches or pull requests

1 participant