Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
browser(firefox): a11y haspopup is a string, not a boolean (#15056)
Dmitry Gozman141093a1cd80
diff --git a/browser_patches/firefox-beta/BUILD_NUMBER b/browser_patches/firefox-beta/BUILD_NUMBERindex 2685268958..646423293f 100644--- a/browser_patches/firefox-beta/BUILD_NUMBER+++ b/browser_patches/firefox-beta/BUILD_NUMBER@@ -1,2 +1,2 @@-1329-Changed: [email protected] Thu Jun 2 16:19:39 PDT 2022+1330+Changed: [email protected] Wed Jun 22 16:26:54 PDT 2022diff --git a/browser_patches/firefox-beta/juggler/content/PageAgent.js b/browser_patches/firefox-beta/juggler/content/PageAgent.jsindex 0cc03dc5f1..ac4b37e933 100644--- a/browser_patches/firefox-beta/juggler/content/PageAgent.js+++ b/browser_patches/firefox-beta/juggler/content/PageAgent.js@@ -869,7 +869,6 @@ class PageAgent {'focused','pressed','focusable',- 'haspopup','required','invalid','modal',@@ -906,7 +905,7 @@ class PageAgent {if (numericalProperty in attributes)tree[numericalProperty] = parseFloat(attributes[numericalProperty]);}- for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts']) {+ for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts', 'haspopup']) {if (stringProperty in attributes)tree[stringProperty] = attributes[stringProperty];}diff --git a/browser_patches/firefox-beta/juggler/protocol/Protocol.js b/browser_patches/firefox-beta/juggler/protocol/Protocol.jsindex 55ed6f819b..90d4d99828 100644--- a/browser_patches/firefox-beta/juggler/protocol/Protocol.js+++ b/browser_patches/firefox-beta/juggler/protocol/Protocol.js@@ -149,7 +149,7 @@ axTypes.AXTree = {focused: t.Optional(t.Boolean),pressed: t.Optional(t.Boolean),focusable: t.Optional(t.Boolean),- haspopup: t.Optional(t.Boolean),+ haspopup: t.Optional(t.String),required: t.Optional(t.Boolean),invalid: t.Optional(t.Boolean),modal: t.Optional(t.Boolean),diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBERindex 2f1b374dff..61ca7afdfc 100644--- a/browser_patches/firefox/BUILD_NUMBER+++ b/browser_patches/firefox/BUILD_NUMBER@@ -1,2 +1,2 @@-1327-Changed: [email protected] Thu Jun 2 16:19:39 PDT 2022+1328+Changed: [email protected] Wed Jun 22 16:26:54 PDT 2022diff --git a/browser_patches/firefox/juggler/content/PageAgent.js b/browser_patches/firefox/juggler/content/PageAgent.jsindex 0cc03dc5f1..ac4b37e933 100644--- a/browser_patches/firefox/juggler/content/PageAgent.js+++ b/browser_patches/firefox/juggler/content/PageAgent.js@@ -869,7 +869,6 @@ class PageAgent {'focused','pressed','focusable',- 'haspopup','required','invalid','modal',@@ -906,7 +905,7 @@ class PageAgent {if (numericalProperty in attributes)tree[numericalProperty] = parseFloat(attributes[numericalProperty]);}- for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts']) {+ for (const stringProperty of ['tag', 'roledescription', 'valuetext', 'orientation', 'autocomplete', 'keyshortcuts', 'haspopup']) {if (stringProperty in attributes)tree[stringProperty] = attributes[stringProperty];}diff --git a/browser_patches/firefox/juggler/protocol/Protocol.js b/browser_patches/firefox/juggler/protocol/Protocol.jsindex 55ed6f819b..90d4d99828 100644--- a/browser_patches/firefox/juggler/protocol/Protocol.js+++ b/browser_patches/firefox/juggler/protocol/Protocol.js@@ -149,7 +149,7 @@ axTypes.AXTree = {focused: t.Optional(t.Boolean),pressed: t.Optional(t.Boolean),focusable: t.Optional(t.Boolean),- haspopup: t.Optional(t.Boolean),+ haspopup: t.Optional(t.String),required: t.Optional(t.Boolean),invalid: t.Optional(t.Boolean),modal: t.Optional(t.Boolean),