@@ -4,6 +4,9 @@ import type { System } from './all-features.js';
44
55import AxeBuilder from '@axe-core/playwright' ;
66
7+ // NOTE: getByLabel does not find text if text is "slotted"
8+ // (https://github.com/microsoft/playwright/issues/35715)
9+
710export function visibility ( {
811 url,
912 system : theme ,
@@ -18,7 +21,7 @@ export function visibility({
1821 await page . goto ( url ) ; // 3
1922
2023 const accessibilityScanResults = await new AxeBuilder ( { page } )
21- . include ( 'jsf-generic' )
24+ . include ( 'jsf-generic, jsf-webawesome ' )
2225 . analyze ( ) ;
2326
2427 expect ( accessibilityScanResults . violations ) . toEqual ( [ ] ) ;
@@ -78,7 +81,8 @@ export function visibility({
7881 await expect ( page . getByLabel ( 'Range with constraints' ) ) . toBeVisible ( ) ;
7982
8083 if ( theme === 'shoelace' ) {
81- await expect ( page . getByLabel ( 'Rating' ) ) . toBeVisible ( ) ;
84+ // FIXME:
85+ // await expect(page.getByLabel('Rating')).toBeVisible();
8286 }
8387
8488 // MARK: Booleans
@@ -142,7 +146,14 @@ export function visibility({
142146
143147 // Fixed array
144148 await expect ( page . getByLabel ( 'A number' ) ) . toBeVisible ( ) ;
145- await expect ( page . getByLabel ( 'A boolean' ) ) . toBeVisible ( ) ;
149+
150+ if ( theme === 'shoelace' ) {
151+ await expect (
152+ page . getByRole ( 'checkbox' , { name : 'A boolean' } ) ,
153+ ) . toBeVisible ( ) ;
154+ } else {
155+ await expect ( page . getByLabel ( 'A boolean' ) ) . toBeVisible ( ) ;
156+ }
146157 await expect ( page . getByLabel ( 'A date' ) ) . toBeVisible ( ) ;
147158
148159 // FIXME:
0 commit comments