Commit 4ee3f5f
committed
test(e2e): fix remaining failing Cypress tests across all specs
Fixes 9 previously failing tests to bring the suite to 71/71 passing:
- Disable express-rate-limit when NODE_ENV=test to prevent 429 errors during rapid API calls
- Forward data-testid prop through CodeActionButton for repo-details selector
- Add data-testid to StepsTimeline step names and details for reliable assertions
- Add NotFound catch-all route in Dashboard layout
- Add .catch() guard to fetchRemoteRepositoryData in RepoDetails
- Fix push-details timing by intercepting and waiting for push API before assertions
- Fix navigation unauthenticated redirect test with 401 intercept strategy
- Fix profile test by stubbing auth profile and waiting for API responses
- Pre-existing fixes in error-pages, push-requests, repo-list, repo, repo-details1 parent afc6f43 commit 4ee3f5f
14 files changed
Lines changed: 439 additions & 259 deletions
File tree
- cypress/e2e
- src
- service
- ui
- components/CustomButtons
- layouts
- views
- PushDetails/components
- RepoDetails
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | | - | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | | - | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
77 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
40 | 63 | | |
41 | 64 | | |
42 | 65 | | |
43 | 66 | | |
| 67 | + | |
44 | 68 | | |
45 | 69 | | |
| 70 | + | |
46 | 71 | | |
47 | 72 | | |
48 | 73 | | |
| |||
76 | 101 | | |
77 | 102 | | |
78 | 103 | | |
79 | | - | |
| 104 | + | |
80 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
81 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
82 | 126 | | |
83 | 127 | | |
84 | 128 | | |
85 | 129 | | |
86 | 130 | | |
87 | 131 | | |
88 | 132 | | |
89 | | - | |
| 133 | + | |
90 | 134 | | |
91 | 135 | | |
92 | 136 | | |
| |||
0 commit comments