Skip to content

Commit

Permalink
Various chores
Browse files Browse the repository at this point in the history
  • Loading branch information
claabs committed Oct 1, 2021
1 parent 9fa5eef commit 0a06a8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 30 deletions.
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"[typescript]": {
"editor.formatOnSave": false,
},
"eslint.enable": true,
"[json]": {
"files.insertFinalNewline": true
},
"typescript.tsdk": "node_modules/typescript/lib",
"docker.defaultRegistryPath": "charlocharlie",
"eslint.workingDirectories": [
"."
]
Expand Down
28 changes: 0 additions & 28 deletions Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,31 +70,3 @@ A general overview of the purchase process. See the code for specifics.
1. Call order preview with the namespaceId and offerId in the body, and the purchase token in a header
1. Remember the order preview response
1. Call confirm order with essentially the contents of order preview, and the purchase token in a header

## Testing

Assuming there will always be at least one free game offer available, test account creation can be done with the following strategy:

### New Strategy

Epic does not filter out the plus-sign suffix that many email mailboxes use to reuse emails. Because of this, we can just create accounts using the same permanent email address.

### Old Strategy

1. Have a **permanent email** on a trusted domain (e.g. gmail.com) that is used to create the account.
- Epic blocks registering accounts with temp email domains. However they don't block temp email domains on the "change email" process.
1. Create the account with a random first name, last name, username, and password.
- Random 16 character alphanumeric username should work
1. Use email APIs to verify the account.
- This may not be required for what we're testing.
1. Perform the tests using this account's credentials.

Whether the tests fail or complete, we need to tear down the account:

1. Using a temp mail service's API ([like this](https://rapidapi.com/Privatix/api/temp-mail)), create a **temp email**.
2. Begin Epic's email address change process to switch from the **permanent email** to the **temp email**.
3. Confirm the email change using the security code sent to the **permanent email**.
4. *(Optional):* Delete the account.
- Not sure if deleting the account increases or reduces the attention we will recieve.

This process lets us create a fresh account for testing, repeatedly, using the same permanent email.
Binary file modified img/edit-this-cookie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0a06a8a

Please sign in to comment.