1 |
Fetch data from API on page load |
Data from API should load without error, populating both the Positive EV and Arbitrage Bets pages with relevant data. |
Pass |
Pass |
Pass |
Pass |
|
2 |
Display error message on API fetch failure |
If API fails to load data, an error message should appear indicating a failure in fetching arbitrage or positive EV bets. |
Pass |
Pass |
Pass |
Pass |
|
3 |
Link navigation between pages |
Navigation links (e.g., Home, Positive EV Bets, Arbitrage Bets) should navigate correctly to each respective page. |
Pass |
Pass |
Pass |
Pass |
|
4 |
Refresh data on page reload |
Data should be re-fetched from the API whenever the page is refreshed. |
Pass |
Pass |
Pass |
Pass |
|
5 |
Display "No bets found" message if no valid bets |
If no valid arbitrage or positive EV bets are found, the page should display a "No bets found" message instead of an empty table. |
Fail |
Pass |
Pass |
Pass |
|
6 |
Calculate implied probability for + and - odds |
Ensure that positive and negative American odds correctly convert to implied probabilities. |
Pass |
Pass |
Pass |
Pass |
Test using multiple positive and negative odds values. |
7 |
Calculate expected value (EV) for Positive EV bets |
Correctly calculate EV for positive EV bets, displaying only bets with a positive EV. |
Fail |
Pass |
Pass |
Pass |
Verified accuracy of EV calculation formula. |
8 |
Filter Positive EV bets to display only profitable bets |
Ensure that only bets with an EV > 0 are shown on the Positive EV Bets page. |
Fail |
Pass |
Pass |
Pass |
|
9 |
Display market names alongside outcomes |
Market names should be displayed alongside outcomes on both Positive EV and Arbitrage pages. |
Fail |
Fail |
Pass |
Pass |
Ensured market names are correctly fetched from API. |
10 |
Calculate arbitrage opportunities |
Correctly identify arbitrage bets with profitable opportunities when placing opposing bets across different sportsbooks in the same market. |
Pass |
Pass |
Pass |
Pass |
|
11 |
Filter arbitrage bets to display different sportsbook bets |
Ensure only arbitrage opportunities where outcomes come from different sportsbooks are shown on Arbitrage page. |
Pass |
Pass |
Pass |
Pass |
|
12 |
Display implied probabilities correctly for arbitrage bets |
Ensure implied probabilities are correctly calculated and displayed for each arbitrage bet on both outcomes. |
Fail |
Pass |
Pass |
Pass |
|
13 |
Calculate arbitrage profit percentage accurately |
Arbitrage profit should be correctly calculated based on implied probabilities for Outcome A and Outcome B. |
Pass |
Pass |
Pass |
Pass |
|
14 |
Sort arbitrage bets by profit percentage |
Arbitrage bets should display in descending order of profit, with highest profit bets at the top. |
Fail |
Fail |
Pass |
Pass |
|
15 |
Ensure no duplicate bets in Positive EV table |
The Positive EV Bets page should not display duplicate bets; each bet should be unique based on event, outcome, and market. |
Fail |
Pass |
Pass |
Pass |
|
16 |
Ensure no duplicate bets in Arbitrage table |
The Arbitrage Bets page should not display duplicate bets; each arbitrage opportunity should be unique based on event and market. |
Pass |
Pass |
Pass |
Pass |
|
17 |
Handle cases with insufficient sportsbook coverage |
Verify that if an outcome has odds from fewer than 4 sportsbooks, it is skipped on the Positive EV page. |
Fail |
Fail |
Fail |
Pass |
Adjust based on coverage requirements. |