Skip to content

Commit

Permalink
Verify if 'instant' helps
Browse files Browse the repository at this point in the history
  • Loading branch information
howard-e committed Jul 1, 2024
1 parent 1acb364 commit cd9c61d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/tests/disclosure_navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,13 @@ ariaTest(
const menus = await t.context.queryElements(t, ex.menuSelector);

for (let b = 0; b < buttons.length; b++) {
await t.context.session.executeScript(function () {
const menu = arguments[0];
menu.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
}, menus[b]);
const links = await t.context.queryElements(t, 'a', menus[b]);

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

Expand Down

0 comments on commit cd9c61d

Please sign in to comment.