@@ -13,7 +13,7 @@ test.beforeEach(async ({ page }) => {
1313test . describe ( "SkipLink:" , function ( ) {
1414 test ( "skip link is present in DOM but initially hidden" , async ( { page } ) => {
1515 // Skip link should be in the DOM but not visible
16- const skipLink = page . locator ( ".skip-link" ) . first ( ) ;
16+ const skipLink = page . locator ( ".widget- skip-link" ) . first ( ) ;
1717 await expect ( skipLink ) . toBeAttached ( ) ;
1818
1919 // Check initial styling (hidden)
@@ -23,7 +23,7 @@ test.describe("SkipLink:", function () {
2323
2424 test ( "skip link becomes visible when focused via keyboard" , async ( { page } ) => {
2525 // Tab to focus the skip link (should be first focusable element)
26- const skipLink = page . locator ( ".skip-link" ) . first ( ) ;
26+ const skipLink = page . locator ( ".widget- skip-link" ) . first ( ) ;
2727 await page . keyboard . press ( "Tab" ) ;
2828
2929 await expect ( skipLink ) . toBeFocused ( ) ;
@@ -37,7 +37,7 @@ test.describe("SkipLink:", function () {
3737 // Tab to focus the skip link
3838 await page . keyboard . press ( "Tab" ) ;
3939
40- const skipLink = page . locator ( ".skip-link" ) . first ( ) ;
40+ const skipLink = page . locator ( ".widget- skip-link" ) . first ( ) ;
4141 await expect ( skipLink ) . toBeFocused ( ) ;
4242
4343 // Activate the skip link
@@ -49,26 +49,23 @@ test.describe("SkipLink:", function () {
4949 } ) ;
5050
5151 test ( "skip link has correct attributes and text" , async ( { page } ) => {
52- const skipLink = page . locator ( ".skip-link" ) . first ( ) ;
52+ const skipLink = page . locator ( ".widget- skip-link" ) . first ( ) ;
5353
5454 // Check default text
5555 await expect ( skipLink ) . toHaveText ( "Skip to main content" ) ;
5656
5757 // Check href attribute
5858 await expect ( skipLink ) . toHaveAttribute ( "href" , "#" ) ;
5959
60- // Check tabindex
61- await expect ( skipLink ) . toHaveAttribute ( "tabindex" , "0" ) ;
62-
6360 // Check CSS class
64- await expect ( skipLink ) . toHaveClass ( "skip-link" ) ;
61+ await expect ( skipLink ) . toHaveClass ( "widget- skip-link mx-name-skipLink1 " ) ;
6562 } ) ;
6663
6764 test ( "visual comparison" , async ( { page } ) => {
6865 // Tab to make skip link visible for screenshot
6966 await page . keyboard . press ( "Tab" ) ;
7067
71- const skipLink = page . locator ( ".skip-link" ) . first ( ) ;
68+ const skipLink = page . locator ( ".widget- skip-link" ) . first ( ) ;
7269 await expect ( skipLink ) . toBeFocused ( ) ;
7370
7471 // Visual comparison of focused skip link
0 commit comments