From 97b78b070eb073d99dde97ef30596e1160557db5 Mon Sep 17 00:00:00 2001 From: James Scholes Date: Thu, 24 Aug 2023 13:47:30 -0600 Subject: [PATCH 1/4] Try programmatically clicking the menu button instead of calling controller methods --- .../data/js/openMenuAndSetFocusToFirstItem.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/menu-button-actions-active-descendant/data/js/openMenuAndSetFocusToFirstItem.js b/tests/menu-button-actions-active-descendant/data/js/openMenuAndSetFocusToFirstItem.js index d43953ddc..bf3117693 100644 --- a/tests/menu-button-actions-active-descendant/data/js/openMenuAndSetFocusToFirstItem.js +++ b/tests/menu-button-actions-active-descendant/data/js/openMenuAndSetFocusToFirstItem.js @@ -1,3 +1,4 @@ // opens the menu, and sets focus on 'Action 1' -testPageDocument.defaultView.menuController.openPopup(); -testPageDocument.defaultView.menuController.setFocusToFirstMenuitem(); +const btn = testPageDocument.getElementById('menubutton1'); +btn.focus(); +btn.click(); From 50c8aee3267165ffb01b4716435e983b9489da0b Mon Sep 17 00:00:00 2001 From: jscholes Date: Thu, 24 Aug 2023 19:56:41 +0000 Subject: [PATCH 2/4] Generate .html source files with scripts automatically --- ...ons-active-descendant.openMenuAndSetFocusToFirstItem.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html b/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html index c7265f552..5232b1d75 100644 --- a/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html +++ b/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html @@ -13,8 +13,9 @@ function setupScript(testPageDocument) { // openMenuAndSetFocusToFirstItem // opens the menu, and sets focus on 'Action 1' - testPageDocument.defaultView.menuController.openPopup(); - testPageDocument.defaultView.menuController.setFocusToFirstMenuitem(); + const btn = testPageDocument.getElementById('menubutton1'); + btn.focus(); + btn.click(); }; document.addEventListener('click', function(event) { From b8ead32159249eaaafd4560c6786c0bb1b0fdeff Mon Sep 17 00:00:00 2001 From: Howard Edwards Date: Tue, 29 Aug 2023 11:11:49 -0500 Subject: [PATCH 3/4] Adding space to trigger netlify re-run --- ...actions-active-descendant.openMenuAndSetFocusToFirstItem.html | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html b/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html index 5232b1d75..f69a801d7 100644 --- a/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html +++ b/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html @@ -16,6 +16,7 @@ const btn = testPageDocument.getElementById('menubutton1'); btn.focus(); btn.click(); + }; document.addEventListener('click', function(event) { From 32d85bab2102732d975e0416cba93bfa9992cdc3 Mon Sep 17 00:00:00 2001 From: Howard Edwards Date: Tue, 29 Aug 2023 11:12:14 -0500 Subject: [PATCH 4/4] Remove extra space --- ...actions-active-descendant.openMenuAndSetFocusToFirstItem.html | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html b/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html index f69a801d7..5232b1d75 100644 --- a/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html +++ b/tests/menu-button-actions-active-descendant/reference/2021-1-14_171136/menu-button-actions-active-descendant.openMenuAndSetFocusToFirstItem.html @@ -16,7 +16,6 @@ const btn = testPageDocument.getElementById('menubutton1'); btn.focus(); btn.click(); - }; document.addEventListener('click', function(event) {