@@ -17,7 +17,8 @@ test.describe('homepage - a11y', () => {
17
17
expect ( accessibilityScanResults . violations ) . toEqual ( [ ] ) ;
18
18
} ) ;
19
19
20
- test ( 'should have stable aria tree' , async ( { page } ) => {
20
+ test ( 'should have stable aria tree - desktop' , async ( { page, isMobile } ) => {
21
+ test . skip ( isMobile ) ;
21
22
await expect ( page . getByRole ( 'main' ) ) . toMatchAriaSnapshot ( `
22
23
- main:
23
24
- article "Sebastian Davids":
@@ -54,6 +55,41 @@ test.describe('homepage - a11y', () => {
54
55
- paragraph: /© \\d+-\\d+ Sebastian Davids/
55
56
` ) ;
56
57
} ) ;
58
+
59
+ test ( 'should have stable aria tree - mobile' , async ( { page, isMobile } ) => {
60
+ test . skip ( ! isMobile ) ;
61
+ await expect ( page . getByRole ( 'main' ) ) . toMatchAriaSnapshot ( `
62
+ - main:
63
+ - article "Sebastian Davids":
64
+ - heading "Sebastian Davids" [level=1]
65
+ - region "Email address":
66
+ - heading "Email address" [level=2]
67
+
68
+ - region "iMessage":
69
+ - heading "iMessage" [level=2]
70
+ - text: APKTIDVw2zk8ZQeSkpWLUD9UGIhH00TtYdMRkryMUZUtBJRxeCSA
71
+ - group:
72
+ - heading "Usage" [level=3]
73
+ - region "GPG":
74
+ - heading "GPG" [level=2]
75
+ - link "GPG public key": Public key
76
+ - link "keys.openpgp.org"
77
+ - text: 3B05 1F8E AA0B 63D1 7220\\a 168C 99A9 7C77 8DCD F19F
78
+ - region "age":
79
+ - heading "age" [level=2]
80
+ - link "age public key": Public key
81
+ ` ) ;
82
+ await expect ( page . getByRole ( 'contentinfo' ) ) . toMatchAriaSnapshot ( `
83
+ - contentinfo:
84
+ - navigation "social links":
85
+ - list:
86
+ - listitem:
87
+ - link "GitHub"
88
+ - listitem:
89
+ - link "Gravatar"
90
+ - paragraph: /© \\d+-\\d+ Sebastian Davids/
91
+ ` ) ;
92
+ } ) ;
57
93
} ) ;
58
94
59
95
test . describe ( 'homepage - light mode' , ( ) => {
0 commit comments