Skip to content

Commit

Permalink
Regression Tests: Enable disclosure_navigation.js test to scroll to c…
Browse files Browse the repository at this point in the history
…urrent element (pull #2997)

Resolves #2996.
  • Loading branch information
howard-e authored May 5, 2024
1 parent 73cc431 commit 2a4ee4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/tests/disclosure_navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ ariaTest(

for (let l = 0; l < links.length; l++) {
await buttons[b].click();
await t.context.session.executeScript(function () {
const link = arguments[0];
link.scrollIntoView({ block: 'center' });
}, links[l]);
await links[l].click();

t.is(
Expand Down

0 comments on commit 2a4ee4b

Please sign in to comment.