From 75bf7885d9dc45b2e69d275a1432df7deb9b0486 Mon Sep 17 00:00:00 2001 From: Stalgia Grigg Date: Wed, 4 Dec 2024 10:13:41 -0800 Subject: [PATCH] Remove errant Home and End assumption in combobox test --- test/tests/combobox_grid-combo.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/tests/combobox_grid-combo.js b/test/tests/combobox_grid-combo.js index a5df1461c..febaf22f6 100644 --- a/test/tests/combobox_grid-combo.js +++ b/test/tests/combobox_grid-combo.js @@ -4,7 +4,6 @@ const assertAriaLabelledby = require('../util/assertAriaLabelledby'); const assertAttributeValues = require('../util/assertAttributeValues'); const assertAttributeDNE = require('../util/assertAttributeDNE'); const assertAriaRoles = require('../util/assertAriaRoles'); -const isMacOS = require('../util/isMacOS'); const exampleFile = 'content/patterns/combobox/examples/grid-combo.html'; const ex = { @@ -874,16 +873,8 @@ ariaTest( const combobox = t.context.session.findElement(By.css(ex.comboboxSelector)); await combobox.sendKeys('a', Key.ARROW_DOWN); - // "ARROW_HOME" is not valid on macos, equivalent is an FN + ARROW_LEFT key chord - // Selenium WebDriver does not support FN keys, so this test is not valid on macos - if (isMacOS()) { - t.pass('Skipping test on macOS - HOME key not supported'); - return; - } - // Send key "ARROW_HOME" await combobox.sendKeys(Key.HOME); - t.true( await confirmCursorIndex(t, ex.comboboxSelector, 0), 'Cursor should be at index 0 after one ARROW_HOME key' @@ -906,13 +897,6 @@ ariaTest( const combobox = t.context.session.findElement(By.css(ex.comboboxSelector)); await combobox.sendKeys('a', Key.ARROW_DOWN); - // "ARROW_END" is not valid on macos, equivalent is an FN + ARROW_RIGHT key chord - // Selenium WebDriver does not support FN keys, so this test is not valid on macos - if (isMacOS()) { - t.pass('Skipping test on macOS - END key not supported'); - return; - } - // Send key "END_ARROW" await combobox.sendKeys(Key.END);