Skip to content

Commit

Permalink
Remove previously added Key.COMMAND
Browse files Browse the repository at this point in the history
Apparently this code as-is breaks automatically run tests, possibly
because in this test (vs. alertdialog test) we await the results,
and I suspect the `Key.COMMAND` doesn't return anything in a non-mac
environment. 🤷🏽‍♀️
  • Loading branch information
frozenzia committed Jun 22, 2023
1 parent 5351f69 commit 0de2545
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/tests/toolbar_toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,6 @@ ariaTest(
async (t) => {
let textarea = await t.context.session.findElement(By.css('textarea'));
await textarea.sendKeys(Key.chord(Key.CONTROL, 'a'));
await textarea.sendKeys(Key.chord(Key.COMMAND, 'a')); // macOS
let originalText = await textarea.getAttribute('value');

const buttons = await t.context.queryElements(
Expand Down Expand Up @@ -1197,7 +1196,6 @@ ariaTest(
async (t) => {
let textarea = await t.context.session.findElement(By.css('textarea'));
await textarea.sendKeys(Key.chord(Key.CONTROL, 'a'));
await textarea.sendKeys(Key.chord(Key.COMMAND, 'a')); // macOS
let originalText = await textarea.getAttribute('value');

const buttons = await t.context.queryElements(
Expand Down

0 comments on commit 0de2545

Please sign in to comment.