Skip to content

Commit 4efaa3a

Browse files
committed
Match accessibility test to JS
1 parent bd2f1f3 commit 4efaa3a

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/async/test_accessibility.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import os
1615
import sys
1716

1817
import pytest
@@ -23,6 +22,8 @@
2322
async def test_accessibility_should_work(
2423
page: Page, is_firefox: bool, is_chromium: bool
2524
) -> None:
25+
if not is_firefox and not is_chromium and sys.platform == "darwin":
26+
pytest.skip("Test disabled on WebKit on macOS")
2627
await page.set_content(
2728
"""<head>
2829
<title>Accessibility Test</title>
@@ -100,14 +101,7 @@ async def test_accessibility_should_work(
100101
{"role": "textbox", "name": "placeholder", "value": "and a value"},
101102
{
102103
"role": "textbox",
103-
"name": (
104-
"placeholder"
105-
if (
106-
sys.platform == "darwin"
107-
and int(os.uname().release.split(".")[0]) >= 21
108-
)
109-
else "This is a description!"
110-
),
104+
"name": "This is a description!",
111105
"value": "and a value",
112106
}, # webkit uses the description over placeholder for the name
113107
],

0 commit comments

Comments
 (0)