Commit 3b5aad5
committed
fix(e2e): decouple smoke home test from featured collection image
The smoke home test asserted that the featured collection hero rendered an
`<img>`. The featured collection is the most-recently-updated collection in
the preview store (`sortKey: UPDATED_AT`), and its image is optional in the
template (`{image && ...}` in _index.tsx). When the newest collection has no
image (currently "Freeride"), the hero renders only its heading and the test
times out waiting for an image that is never present.
Assert the featured collection heading (`h1`, the collection title, which is
always present) instead, per the "Dynamic Store Data" guidance in
e2e/CLAUDE.md. The product grid image assertion still verifies Image rendering
against reliable product data.1 parent 5ac0e85 commit 3b5aad5
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 18 | + | |
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
27 | 22 | | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
31 | | - | |
| 26 | + | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| |||
0 commit comments