-
Notifications
You must be signed in to change notification settings - Fork 12
Test Cases v.0.1
ToshkaM edited this page Jul 7, 2020
·
1 revision
TC ID | Test Case | Expected results |
---|---|---|
1 | Open https://filecoin.tools/ | Page is loaded successfully |
All page elements are present and applicable: | ||
- Search text input field with default placeholder “Search by File CID, Deal ID, or Miner ID” | ||
- Search icon enabled by default | ||
- Data table with the following tab columns: | ||
a) FILE CID | ||
b) DEAL ID | ||
c) MINER ID | ||
d) SECTOR | ||
e) STATE indicator (dot icon) | ||
f) STATE | ||
The page contains first page with 10 entries loaded by default | ||
Entries are sorted by DEAL ID in descending order | ||
Data validation: | ||
- Sector – contains sector ID or 0 if not defined | ||
- State indicator (dot icon): | ||
a) Green (#3db14a) if State = Active | ||
b) Yellow (#d6c41e) if State = Fault | ||
c) Grey (#8894a8) if Status = Recovery | ||
d) Red (#f0291a) is Status = Unknown | ||
2 | Open https://filecoin.tools/ | Search text input field is highlighted with green border |
Set cursor to the Search field | Clean data icon (X) is appeared in front of Search icon | |
Start type into the field | ||
3 | Open https://filecoin.tools/ | “No Deals available” message is shown instead of data table |
Set cursor to the Search field | ||
Start type any free text into the Search field | ||
Click on Search icon | ||
4 | Open https://filecoin.tools/ | Search field restored to the default state and placeholder “Search by File CID, Deal ID, or Miner ID” is shown |
Set cursor to the Search field | The page contains first page with 10 entries loaded by default | |
Start type any free text into the Search field | ||
Click on clean (X) icon | ||
5 | Open https://filecoin.tools/ | All relevant results are shown in grid |
Set cursor to the Search field | Note: search is performed by full match criteria | |
Copy and paste any FILE CID | ||
Click on Search icon | ||
6 | Open https://filecoin.tools/ | All relevant results are shown in grid |
Set cursor to the Search field | Note: search is performed by full match criteria | |
Copy and paste any DEAL ID | ||
Click on Search icon | ||
7 | Open https://filecoin.tools/ | All relevant results are shown in grid |
Set cursor to the Search field | Note: search is performed by full match criteria | |
Copy and paste any MINER ID | ||
Click on Search icon | ||
8 | Open https://filecoin.tools/ | All relevant results are shown in grid |
Set cursor to the Search field | Note: search is performed by full match criteria | |
Copy and paste any MINER ID or DEAL ID or FILE CID | ||
Press Enter on keyboard | ||
9 | Open https://filecoin.tools/ | All relevant results are shown in grid |
Set cursor to the Search field | Note: search is performed by full match criteria | |
Copy and paste any MINER ID or DEAL ID or FILE CID | ||
Press Enter on keyboard | ||
Press BACKSPACE and clean the entered data | ||
Press Enter on keyboard | ||
10 | Open https://filecoin.tools/ | Entries are loaded with infinite loading |
Scroll down | “Loading” icon appears at the end of the page and shown till the next page will be fully loaded | |
11 | Open https://filecoin.tools/ | Infinite loading gets stopped |
Scroll down till the final page | No “Loading” of “Show more” icons is shown | |
12 | Open https://filecoin.tools/ | Pop up with following details is shown: |
Click on any entry | ||
File CID – file CID truncated to 6 first chars- three dots-4 last chars | ||
Deal ID | ||
Miner ID | ||
Sector | ||
Client | ||
Piece Size | ||
Verified Deal | ||
Start Deal | ||
End Deal | ||
Price | ||
Expiration | ||
Miner Collateral | ||
Client Collateral | ||
Close button. Enabled by default | ||
13 | Open https://filecoin.tools/ | Check data present in pop up regarding the selected entry in API response |
Click on any entry | /api/deals?page=1&per_page=10 | |
14 | Open https://filecoin.tools/ | Pop up gets closed |
Click on any entry | Page is not reloaded | |
Click on Close button in pop up | ||
15 | Execute API request with the following parameters: | Following response is expected |
GET /api/deals?page=1&per_page=10 | { | |
"Pagination": { | ||
"Page": 1, | ||
"PerPage": 10 | ||
}, | ||
With array of 10 deals sorted by DEAL ID in descending order | ||
Each deal has following set of parameters in place: | ||
"DealID": 4538, | ||
"SectorID": 0, | ||
"DealInfo": { | ||
"DealID": 4538, | ||
"Proposal": { | ||
"PieceCID": "bafk4chzaadypyszl2mhmof4osclc7zpw3shdgogsrdksobflefmanroo5mta", | ||
"PieceSize": 256, | ||
"VerifiedDeal": false, | ||
"Client": "t01458", | ||
"Provider": "t01459", | ||
"StartEpoch": 74069, | ||
"EndEpoch": 76830, | ||
"StoragePricePerEpoch": "10000000000", | ||
"ProviderCollateral": "254", | ||
"ClientCollateral": "0" | ||
}, | ||
"State": { | ||
"SectorStartEpoch": -1, | ||
"LastUpdatedEpoch": 0, | ||
"SlashEpoch": 0 | ||
} | ||
}, | ||
SectorInfo": null, | ||
"State": "" | ||
16 | Execute API request with the following parameters: | Expected response contains all info requested for CID (see example above in TC ) |
GET | ||
/api/deals/{existing CID} | ||
17 | Execute API request with the following parameters: | Expected response: |
GET | { | |
/api/deals/{dummy CID} | "Pagination": { | |
"Page": 1, | ||
"PerPage": 10 | ||
}, | ||
"Deals": null | ||
} | ||
“No Deals available” message is shown on UI | ||
18 | Execute API request with the following parameters: | Expected response contains all info requested for CID (see example above in TC ) |
GET | ||
/api/deals/{existing Provider id} | ||
19 | Execute API request with the following parameters: | { |
GET | "Pagination": { | |
/api/deals/{dummy Provider id} | "Page": 1, | |
"PerPage": 10 | ||
}, | ||
"Deals": null | ||
} | ||
“No Deals available” message is shown on UI | ||
20 | Execute API request with the following parameters: | Expected response contains all info requested for CID (see example above in TC ) |
GET | ||
/api/deals/{existing Deal id} | ||
21 | Execute API request with the following parameters: | { |
GET | "Pagination": { | |
/api/deals/{dummy Deal id} | "Page": 1, | |
"PerPage": 10 | ||
}, | ||
"Deals": null | ||
} | ||
“No Deals available” message is shown on UI | ||