Skip to content

Commit

Permalink
Regression Tests: Enable disclosure_navigation.js test to scroll to…
Browse files Browse the repository at this point in the history
… element and click in `executeScript` context (pull #3059)

Additional changes to resolve issue #2996.
  • Loading branch information
howard-e authored Jul 27, 2024
1 parent b28a984 commit 1637413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tests/disclosure_navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ ariaTest(
await buttons[b].click();
await t.context.session.executeScript(function () {
const link = arguments[0];
link.scrollIntoView({ block: 'center' });
link.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
link.click();
}, links[l]);
await links[l].click();

t.is(
await links[l].getAttribute('aria-current'),
Expand Down

0 comments on commit 1637413

Please sign in to comment.