@@ -1109,4 +1109,116 @@ test.describe('Visual Comparison: SubNav', () => {
1109
1109
await page . waitForTimeout ( 500 )
1110
1110
await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1111
1111
} )
1112
+
1113
+ test ( 'SubNav / With no aria-current set' , async ( { page} ) => {
1114
+ await page . goto (
1115
+ 'http://localhost:6006/iframe.html?args=&id=components-subnav-features--no-active-links&viewMode=story' ,
1116
+ )
1117
+
1118
+ await page . waitForTimeout ( 500 )
1119
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1120
+ } )
1121
+
1122
+ test ( 'SubNav / With no aria-current set (fr)' , async ( { page} ) => {
1123
+ await page . goto (
1124
+ 'http://localhost:6006/iframe.html?globals=locale%3Afr&args=&id=components-subnav-features--no-active-links&viewMode=story' ,
1125
+ )
1126
+
1127
+ await page . waitForTimeout ( 500 )
1128
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1129
+ } )
1130
+
1131
+ test ( 'SubNav / With no aria-current set (de)' , async ( { page} ) => {
1132
+ await page . goto (
1133
+ 'http://localhost:6006/iframe.html?globals=locale%3Ade&args=&id=components-subnav-features--no-active-links&viewMode=story' ,
1134
+ )
1135
+
1136
+ await page . waitForTimeout ( 500 )
1137
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1138
+ } )
1139
+
1140
+ test ( 'SubNav / With no aria-current set (ja)' , async ( { page} ) => {
1141
+ await page . goto (
1142
+ 'http://localhost:6006/iframe.html?globals=locale%3Aja&args=&id=components-subnav-features--no-active-links&viewMode=story' ,
1143
+ )
1144
+
1145
+ await page . waitForTimeout ( 500 )
1146
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1147
+ } )
1148
+
1149
+ test ( 'SubNav / With no aria-current set (es)' , async ( { page} ) => {
1150
+ await page . goto (
1151
+ 'http://localhost:6006/iframe.html?globals=locale%3Aes&args=&id=components-subnav-features--no-active-links&viewMode=story' ,
1152
+ )
1153
+
1154
+ await page . waitForTimeout ( 500 )
1155
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1156
+ } )
1157
+
1158
+ test ( 'SubNav / With no aria-current set (pt-BR)' , async ( { page} ) => {
1159
+ await page . goto (
1160
+ 'http://localhost:6006/iframe.html?globals=locale%3Apt-BR&args=&id=components-subnav-features--no-active-links&viewMode=story' ,
1161
+ )
1162
+
1163
+ await page . waitForTimeout ( 500 )
1164
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1165
+ } )
1166
+
1167
+ // eslint-disable-next-line i18n-text/no-en
1168
+ test . describe ( 'Mobile viewport test for With no aria-current set (narrow)' , ( ) => {
1169
+ test . use ( { viewport : { width : 360 , height : 800 } } )
1170
+ test ( 'SubNav / With no aria-current set (narrow)' , async ( { page} ) => {
1171
+ await page . goto (
1172
+ 'http://localhost:6006/iframe.html?args=&id=components-subnav-features--no-active-links-narrow&viewMode=story' ,
1173
+ )
1174
+
1175
+ await page . waitForTimeout ( 500 )
1176
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1177
+ } )
1178
+
1179
+ test ( 'SubNav / With no aria-current set (narrow) (fr)' , async ( { page} ) => {
1180
+ await page . goto (
1181
+ 'http://localhost:6006/iframe.html?globals=locale%3Afr&args=&id=components-subnav-features--no-active-links-narrow&viewMode=story' ,
1182
+ )
1183
+
1184
+ await page . waitForTimeout ( 500 )
1185
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1186
+ } )
1187
+
1188
+ test ( 'SubNav / With no aria-current set (narrow) (de)' , async ( { page} ) => {
1189
+ await page . goto (
1190
+ 'http://localhost:6006/iframe.html?globals=locale%3Ade&args=&id=components-subnav-features--no-active-links-narrow&viewMode=story' ,
1191
+ )
1192
+
1193
+ await page . waitForTimeout ( 500 )
1194
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1195
+ } )
1196
+
1197
+ test ( 'SubNav / With no aria-current set (narrow) (ja)' , async ( { page} ) => {
1198
+ await page . goto (
1199
+ 'http://localhost:6006/iframe.html?globals=locale%3Aja&args=&id=components-subnav-features--no-active-links-narrow&viewMode=story' ,
1200
+ )
1201
+
1202
+ await page . waitForTimeout ( 500 )
1203
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1204
+ } )
1205
+
1206
+ test ( 'SubNav / With no aria-current set (narrow) (es)' , async ( { page} ) => {
1207
+ await page . goto (
1208
+ 'http://localhost:6006/iframe.html?globals=locale%3Aes&args=&id=components-subnav-features--no-active-links-narrow&viewMode=story' ,
1209
+ )
1210
+
1211
+ await page . waitForTimeout ( 500 )
1212
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1213
+ } )
1214
+
1215
+ test ( 'SubNav / With no aria-current set (narrow) (pt-BR)' , async ( { page} ) => {
1216
+ await page . goto (
1217
+ 'http://localhost:6006/iframe.html?globals=locale%3Apt-BR&args=&id=components-subnav-features--no-active-links-narrow&viewMode=story' ,
1218
+ )
1219
+
1220
+ await page . waitForTimeout ( 500 )
1221
+ await expect ( page ) . toHaveScreenshot ( { fullPage : true } )
1222
+ } )
1223
+ } )
1112
1224
} )
0 commit comments